From e1a0866ce748ee1a228060f401dbb190d3caa8c3 Mon Sep 17 00:00:00 2001 From: Lukas Rytz Date: Fri, 3 Dec 2010 18:47:06 +0000 Subject: close #4036, fix #2489. --- test/files/pos/t4036.scala | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 test/files/pos/t4036.scala (limited to 'test/files/pos') diff --git a/test/files/pos/t4036.scala b/test/files/pos/t4036.scala new file mode 100644 index 0000000000..b902a3153b --- /dev/null +++ b/test/files/pos/t4036.scala @@ -0,0 +1,13 @@ +object Error { + def f { + case class X(b: Boolean = false) + val r = X() + } + def g = { + val x = 0 + var y = 1 // no constant type + def foo(z: Int = y) = 1 + val z = 2 + foo() + } +} -- cgit v1.2.3