Skip to content

Commit aee1555

Browse files
committed
Add regression test
1 parent adee773 commit aee1555

File tree

2 files changed

+28
-1
lines changed

2 files changed

+28
-1
lines changed
Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
inline def f(inline thunk: Any): Unit = thunk
2+
transparent inline def g(inline thunk: Any): Unit = thunk
3+
4+
def test: Unit =
5+
f {
6+
class C1(val i: Int)
7+
val c = C1(1)
8+
c.i
9+
}
10+
11+
f {
12+
case class C2(i: Int)
13+
val c = C2(2)
14+
c.i
15+
}
16+
17+
g {
18+
class C3(val i: Int)
19+
val c = C3(3)
20+
c.i
21+
}
22+
23+
g {
24+
case class C4(i: Int)
25+
val c = C4(4)
26+
c.i
27+
}

0 commit comments

Comments
 (0)