diff options
author | Lukas Rytz <lukas.rytz@gmail.com> | 2014-11-04 11:17:00 +0100 |
---|---|---|
committer | Lukas Rytz <lukas.rytz@gmail.com> | 2014-11-04 11:19:31 +0100 |
commit | ba9b4cca0408bbba51e56dbd96ca7e87a115e0e4 (patch) | |
tree | 7ce04e3743ac0d9f406935c1206f6c4411f58043 /test/files | |
parent | 22233f40f641815fe7b9304bb386ee27c8422603 (diff) | |
download | scala-ba9b4cca0408bbba51e56dbd96ca7e87a115e0e4.tar.gz scala-ba9b4cca0408bbba51e56dbd96ca7e87a115e0e4.tar.bz2 scala-ba9b4cca0408bbba51e56dbd96ca7e87a115e0e4.zip |
SI-6051 Test case, the issue seems to be fixed.
Diffstat (limited to 'test/files')
-rw-r--r-- | test/files/pos/t6051.scala | 19 |
1 files changed, 19 insertions, 0 deletions
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) +} |