Skip to content

Commit 060a6e4

Browse files
committed
Fix tests
1 parent 3423cc1 commit 060a6e4

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

tests/neg/enums.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ enum E4 {
2222
case C4(x: Int)
2323
}
2424
object E4 {
25-
val x1: Int => E4 = C4 // error: found: C4, required: Int => E4
25+
val x1: Int => E4 = C4 // ok
2626
val x2: Int => E4 = C4(_) // ok
2727
}
2828

tests/pos/t3137.scala renamed to tests/neg/t3137.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,5 +13,5 @@ trait AA {
1313
}
1414

1515
class BB extends AA {
16-
case class C(v: Int)
16+
case class C(v: Int) // error
1717
}

0 commit comments

Comments
 (0)