Skip to content

Commit aa079a5

Browse files
Add regression test (#17047)
Closes #16943
2 parents f92d6f1 + ff46104 commit aa079a5

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

tests/run/i16943.scala

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
@main
2+
@annotation.experimental
3+
def Test(): Unit = fail(compiletime.erasedValue, 1)
4+
5+
@annotation.experimental
6+
def fail(dumb: CanThrow[Exception], x: Int) = println(x)

0 commit comments

Comments
 (0)