Skip to content

Commit 4969b26

Browse files
committed
Add neg test
1 parent 67ec279 commit 4969b26

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

tests/init/neg/promote-warm.scala

+12
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
class PromoteWarm:
2+
class A:
3+
def foo() = PromoteWarm.this.foo()
4+
5+
class B(a: A):
6+
a.foo()
7+
8+
val a = new A
9+
val b = new B(a) // error
10+
val n = 10
11+
12+
def foo() = println(n)

0 commit comments

Comments
 (0)