summaryrefslogtreecommitdiff
path: root/test/pending
diff options
context:
space:
mode:
authorEugene Burmako <xeno.by@gmail.com>2012-05-08 01:00:40 +0200
committerEugene Burmako <xeno.by@gmail.com>2012-05-08 01:00:40 +0200
commit3830947c94294b79190d024218746e40193e7e6b (patch)
treeed26c36b84ce78c94229f16346629d095172b539 /test/pending
parent7cac6334d4437ff54c4979799574045501f64135 (diff)
downloadscala-3830947c94294b79190d024218746e40193e7e6b.tar.gz
scala-3830947c94294b79190d024218746e40193e7e6b.tar.bz2
scala-3830947c94294b79190d024218746e40193e7e6b.zip
test for SI-4728
Diffstat (limited to 'test/pending')
-rw-r--r--test/pending/run/t4728.check2
-rw-r--r--test/pending/run/t4728.scala11
2 files changed, 13 insertions, 0 deletions
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