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/run/names-defaults.scala | 1 + 1 file changed, 1 insertion(+) (limited to 'test/files/run/names-defaults.scala') diff --git a/test/files/run/names-defaults.scala b/test/files/run/names-defaults.scala index 5e84b9c132..63f7950d61 100644 --- a/test/files/run/names-defaults.scala +++ b/test/files/run/names-defaults.scala @@ -274,6 +274,7 @@ object Test extends Application { // #2489 class A2489 { def foo { def bar(a: Int = 1) = a; bar(); val u = 0 } } + class A2489x2 { def foo { val v = 10; def bar(a: Int = 1, b: Int = 2) = a; bar(); val u = 0 } } // a bug reported on the mailing lists, related to #2489 class Test2489 { -- cgit v1.2.3