Skip to content

Commit 67ec279

Browse files
committed
Add test
1 parent 7612a20 commit 67ec279

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

tests/init/pos/promote-warm.scala

Lines changed: 12 additions & 0 deletions
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 n = 10
9+
val a = new A
10+
val b = new B(a)
11+
12+
def foo() = println(n)

0 commit comments

Comments
 (0)