Skip to content

Commit 23380c8

Browse files
committed
Updating secondary-ctr2.scala
1 parent c9ed806 commit 23380c8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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)