From 3830947c94294b79190d024218746e40193e7e6b Mon Sep 17 00:00:00 2001 From: Eugene Burmako Date: Tue, 8 May 2012 01:00:40 +0200 Subject: test for SI-4728 --- test/pending/run/t4728.check | 2 ++ test/pending/run/t4728.scala | 11 +++++++++++ 2 files changed, 13 insertions(+) create mode 100644 test/pending/run/t4728.check create mode 100644 test/pending/run/t4728.scala (limited to 'test/pending/run') diff --git a/test/pending/run/t4728.check b/test/pending/run/t4728.check new file mode 100644 index 0000000000..7a754f414c --- /dev/null +++ b/test/pending/run/t4728.check @@ -0,0 +1,2 @@ +1 +2 \ No newline at end of file diff --git a/test/pending/run/t4728.scala b/test/pending/run/t4728.scala new file mode 100644 index 0000000000..36f7860613 --- /dev/null +++ b/test/pending/run/t4728.scala @@ -0,0 +1,11 @@ +class X +class Y extends X +object Ambiguous { + def f(x: X) = 1 + def f(ys: Y*) = 2 +} + +object Test extends App { + println(Ambiguous.f(new X)) + println(Ambiguous.f(new Y)) +} \ No newline at end of file -- cgit v1.2.3