Skip to content

Commit e984359

Browse files
committed
Merge pull request #7 from lrytz/t6051
SI-6051 Test case, the issue seems to be fixed.
2 parents 5f6663e + ba9b4cc commit e984359

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)