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.
1 parent 3423cc1 commit 060a6e4Copy full SHA for 060a6e4
tests/neg/enums.scala
@@ -22,7 +22,7 @@ enum E4 {
22
case C4(x: Int)
23
}
24
object E4 {
25
- val x1: Int => E4 = C4 // error: found: C4, required: Int => E4
+ val x1: Int => E4 = C4 // ok
26
val x2: Int => E4 = C4(_) // ok
27
28
tests/pos/t3137.scala renamed to tests/neg/t3137.scala
@@ -13,5 +13,5 @@ trait AA {
13
14
15
class BB extends AA {
16
- case class C(v: Int)
+ case class C(v: Int) // error
17
0 commit comments