Skip to content

Commit b41deb5

Browse files
committed
Another test case
Prompted by a discussion on the Scala reddit, this one verified that dotty does not have the problem exhibited in SI-10170. I piggyback on this PR because this does not warrant a separate PR>
1 parent 8cf9d55 commit b41deb5

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

tests/run/t10170.scala

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
object Test {
2+
def main(args: Array[String]) = println(f)
3+
4+
def f = {
5+
val a = 100; ({ val a = 0; (c: Int) => c })(a)
6+
}
7+
}

0 commit comments

Comments
 (0)