Skip to content

Commit 8fc1f51

Browse files
committed
Fix #4172: Add regression test
1 parent 6c33431 commit 8fc1f51

File tree

2 files changed

+14
-0
lines changed

2 files changed

+14
-0
lines changed

tests/run/i4172.check

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Test$.test(i4172.scala:11)

tests/run/i4172.scala

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
object Test {
2+
def main(args: Array[String]): Unit = {
3+
test
4+
}
5+
6+
transparent def foo(first: Int*)(second: String = "") = {
7+
println(new Exception().getStackTrace.head)
8+
}
9+
10+
def test = {
11+
foo(1)()
12+
}
13+
}

0 commit comments

Comments
 (0)