From ba9b4cca0408bbba51e56dbd96ca7e87a115e0e4 Mon Sep 17 00:00:00 2001 From: Lukas Rytz Date: Tue, 4 Nov 2014 11:17:00 +0100 Subject: SI-6051 Test case, the issue seems to be fixed. --- test/files/pos/t6051.scala | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 test/files/pos/t6051.scala (limited to 'test') diff --git a/test/files/pos/t6051.scala b/test/files/pos/t6051.scala new file mode 100644 index 0000000000..854524feb9 --- /dev/null +++ b/test/files/pos/t6051.scala @@ -0,0 +1,19 @@ +object Foo1 { + def foo(x: Int, y: Int = 10) = x*y + lazy val y = foo(x = 20) +} + +object Foo2 { + def foo(x: Int, y: Int = 10) = x*y + val y = foo(x = 20) +} + +object Foo3 { + def foo(x: Int, y: Int = 10) = x*y + def y = foo(x = 20) +} + +object Foo4 { + def foo(x: Int, y: Int = 10) = x*y + var y = foo(x = 20) +} -- cgit v1.2.3