Skip to content

Commit 5e46041

Browse files
committed
Updating tests
Updating secondary-ctr2.scala
1 parent 1fc771a commit 5e46041

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

tests/init/neg/early-promote5.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
abstract class A {
2-
bar(this)
2+
bar(this) // error
33
def bar(x: A): Unit
44
}
55

tests/init/neg/secondary-ctor2.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ class A(b: B, x: Int) {
66
}
77
Inner().foo()
88

9-
val f = () => new A(b, 3)
9+
val f = () => new A(b, 3) // error: Cannot promote
1010
f() // ok
1111
}
1212
}

0 commit comments

Comments
 (0)