We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
case class Foo(a: Int, b: Int) object Test { def foo(x: Foo) = List(x).map(_ + _) def main(args: Array[String]): Unit = println(foo(Foo(3, 4))) }
The code compiles and runs.
The code should be rejected, as in Scala 2.