diff options
Diffstat (limited to 'test/files/run')
-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 8e8c8a1e4a..05f0afa199 100644 --- a/test/files/run/names-defaults.scala +++ b/test/files/run/names-defaults.scala @@ -251,6 +251,13 @@ object Test extends Application { // (cannot call f using the default, List(1,2) doesn't match the param type) + // #2290 + def spawn(a: Int, b: => Unit) = { () } + def t { + spawn(b = { val ttt = 1; ttt }, a = 0) + } + + // 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)) |