From 7b43c30aa1746cb37ee65f2871e4e92e82896a10 Mon Sep 17 00:00:00 2001 From: Lukas Rytz Date: Thu, 1 Apr 2010 08:39:11 +0000 Subject: close #3178. review by community --- test/files/run/names-defaults.scala | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'test/files') 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)) -- cgit v1.2.3