Open mac01021 opened 3 years ago
Sorry, maybe I should have assigned this itype:crash
To work around this, give an explicit type to methods_by_feature
:
val methods_by_feature: Map[?, Method[?]] = (for { method <- methods } yield method.feature -> method).toMap
(also note that _
will be deprecated in favor of ?
for wildcards in the future: http://dotty.epfl.ch/docs/reference/changed-features/wildcards.html)
Compiler version
scalac 3.0.2
Minimized code
I apologize for the length of this code, but countless variations all compile or successfully fail to compile.
Output
Expectation
The compiler should either successfully compile the file or else successfully yield an error message (with line number, etc). But not crash.