diff options
author | Lukas Rytz <lukas.rytz@epfl.ch> | 2010-04-01 08:39:11 +0000 |
---|---|---|
committer | Lukas Rytz <lukas.rytz@epfl.ch> | 2010-04-01 08:39:11 +0000 |
commit | 7b43c30aa1746cb37ee65f2871e4e92e82896a10 (patch) | |
tree | bd12553e5f7d84e8910c678b401afb68c1cef98e /test | |
parent | f32f87226959f9def3e3e14725898bd3c39840f8 (diff) | |
download | scala-7b43c30aa1746cb37ee65f2871e4e92e82896a10.tar.gz scala-7b43c30aa1746cb37ee65f2871e4e92e82896a10.tar.bz2 scala-7b43c30aa1746cb37ee65f2871e4e92e82896a10.zip |
close #3178. review by community
Diffstat (limited to 'test')
-rw-r--r-- | test/files/run/names-defaults.scala | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/test/files/run/names-defaults.scala b/test/files/run/names-defaults.scala index 54a09c14f9..8557047875 100644 --- a/test/files/run/names-defaults.scala +++ b/test/files/run/names-defaults.scala @@ -296,6 +296,14 @@ object Test extends Application { class C extends A } + object t3178 { + def foo(x: String) = x + def foo(x: Int) = x + def bar(foo: Int) = foo + bar(foo = 1) + } + + // 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)) |