Closed
Description
minimized code
def k = {
object + extends Function1[Int, Int] { def apply(i: Int): Int = i + 1 }
val g: Int => Int = +
g(1)
}
13 | val g: Int => Int = +
| ^
| expression expected but end of statement found
@hrhino said his tests for scala/scala#8617 worked, so I tried mine, too.
final val x = 42
def f = {
import x._
val g: Int => Int = +
g(1)
}