diff options
Diffstat (limited to 'test/files')
-rw-r--r-- | test/files/run/names-defaults.scala | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/test/files/run/names-defaults.scala b/test/files/run/names-defaults.scala index 482c4f2f7b..c016a98e1a 100644 --- a/test/files/run/names-defaults.scala +++ b/test/files/run/names-defaults.scala @@ -181,6 +181,13 @@ object Test extends Application { println(b11.copy()()) + + // bug #2057 + class O { class I(x: Int = 1) } + class U extends O { val f = new I() } + + + // DEFINITIONS def test1(a: Int, b: String) = println(a +": "+ b) def test2(u: Int, v: Int)(k: String, l: Int) = println(l +": "+ k +", "+ (u + v)) |