Skip to content

Commit 5a8aa50

Browse files
committed
WIP: Add failing test case where method from outer scope got expanded accidentally
1 parent 17bd00d commit 5a8aa50

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

tests/run-macros/i17105/Test_2.scala

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
11
@main def Test: Unit =
22
println("case single: " + testExpr { def f(x: String) = "placeholder" + x; f("1st") + " outside" })
33
println("case curried: " + testExpr { def f(x: String)(y: String) = "placeholder" + x; f("1st")("2nd") + " outside" })
4+
def outer() = "outside-method"
5+
println("case methods from outer scope " + testExpr { def f(x: String) = "placeholder" + x; f("1st") + outer() })

0 commit comments

Comments
 (0)