Skip to content

Commit 23e6715

Browse files
Fix enum-List-control test
1 parent 531c073 commit 23e6715

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/pos/enum-List-control.scala

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
abstract sealed class List[T] extends Enum
22
object List {
33
final class Cons[T](x: T, xs: List[T]) extends List[T] {
4-
def ordinal = 0
4+
def $ordinal = 0
55
}
66
object Cons {
77
def apply[T](x: T, xs: List[T]): List[T] = new Cons(x, xs)
88
}
99
final class Nil[T]() extends List[T] {
10-
def ordinal = 1
10+
def $ordinal = 1
1111
}
1212
object Nil {
1313
def apply[T](): List[T] = new Nil()

0 commit comments

Comments
 (0)