Skip to content

Commit ba9b4cc

Browse files
committed
SI-6051 Test case, the issue seems to be fixed.
1 parent 22233f4 commit ba9b4cc

File tree

1 file changed

+19
-0
lines changed

1 file changed

+19
-0
lines changed

test/files/pos/t6051.scala

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
object Foo1 {
2+
def foo(x: Int, y: Int = 10) = x*y
3+
lazy val y = foo(x = 20)
4+
}
5+
6+
object Foo2 {
7+
def foo(x: Int, y: Int = 10) = x*y
8+
val y = foo(x = 20)
9+
}
10+
11+
object Foo3 {
12+
def foo(x: Int, y: Int = 10) = x*y
13+
def y = foo(x = 20)
14+
}
15+
16+
object Foo4 {
17+
def foo(x: Int, y: Int = 10) = x*y
18+
var y = foo(x = 20)
19+
}

0 commit comments

Comments
 (0)