You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
"In this formulation, it becomes apparent that the first typecheck is redundant. If something is ascribed with some type, then typechecking the ascription against that type does nothing useful."
...except maybe induce an implicit conversion, as in from String => StringOps.
Doing this in the REPL. Worked Monday 16/12, stopped working Tuesday 17/12.
{code}
scala> "börk börk" flatMap (ch ⇒ if (ch > 127) f"&#x${ch}%04x;" else "" + ch)
:8: error: type mismatch;
found : Comparable[String]
required: scala.collection.GenTraversableOnce[?]
"börk börk" flatMap (ch ⇒ if (ch > 127) f"&#x${ch}%04x;" else "" + ch)
{code} ^
The text was updated successfully, but these errors were encountered: