Skip to content

Commit f4aa49b

Browse files
committed
Reorganize tests
1 parent fa3d6ed commit f4aa49b

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

tests/init/pos/early-promote.scala renamed to tests/init/neg/early-promote.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ class A { // checking A
2424
def c = new C
2525
}
2626
val b = new B()
27-
List(b) // Direct promotion works here
27+
List(b) // error: no promotion for objects that contain inner classes
2828
val af = 42
2929
}
3030

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
class DoubleList {
22
class Node(var prev: Node, var next: Node, data: Int)
3-
object sentinel extends Node(sentinel, sentinel, 0)
3+
object sentinel extends Node(sentinel, sentinel, 0) // error // error
44

55
def insert(x: Int) = ???
66
}

0 commit comments

Comments
 (0)