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
If a val definition contains an extra set of parenthesis, like if not correctly transforming a def into a val, the error reported by the compiler is not really helpful.
$ scalac test.scala
test.scala:5:error: not found: value a
val a():String=""^
one error found
It would be better if the error was something like: expected ':' or '=', found '('