summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorJason Zaugg <jzaugg@gmail.com>2014-11-04 20:31:09 +1000
committerJason Zaugg <jzaugg@gmail.com>2014-11-04 20:31:09 +1000
commite9843598092579761cccdfcad03a88c61cd5b079 (patch)
tree9c1d57bfe61f9d47e19f6d5a0eda0ad23de8286d /test
parent5f6663ee19a95289b5466dab6b1caa92c579bc73 (diff)
parentba9b4cca0408bbba51e56dbd96ca7e87a115e0e4 (diff)
downloadscala-e9843598092579761cccdfcad03a88c61cd5b079.tar.gz
scala-e9843598092579761cccdfcad03a88c61cd5b079.tar.bz2
scala-e9843598092579761cccdfcad03a88c61cd5b079.zip
Merge pull request #7 from lrytz/t6051
SI-6051 Test case, the issue seems to be fixed.
Diffstat (limited to 'test')
-rw-r--r--test/files/pos/t6051.scala19
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)
+}