summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
Diffstat (limited to 'test')
-rw-r--r--test/files/neg/t0259.check7
-rw-r--r--test/files/neg/t0259.scala6
-rw-r--r--test/files/pos/t0273.scala4
-rw-r--r--test/pending/pos/t0288/Foo.scala9
-rw-r--r--test/pending/pos/t0288/Outer.java9
5 files changed, 35 insertions, 0 deletions
diff --git a/test/files/neg/t0259.check b/test/files/neg/t0259.check
new file mode 100644
index 0000000000..8c6ce1d269
--- /dev/null
+++ b/test/files/neg/t0259.check
@@ -0,0 +1,7 @@
+t0259.scala:4: error: double definition:
+constructor TestCase3:(String*)test.TestCase3 and
+constructor TestCase3:((String, Int)*)test.TestCase3 at line 3
+have same type after erasure: (Seq)test.TestCase3
+ def this( groups: String*) = this()
+ ^
+one error found
diff --git a/test/files/neg/t0259.scala b/test/files/neg/t0259.scala
new file mode 100644
index 0000000000..0975dec58e
--- /dev/null
+++ b/test/files/neg/t0259.scala
@@ -0,0 +1,6 @@
+package test;
+class TestCase3() {
+ def this( groups: (String, Int)*) = this()
+ def this( groups: String*) = this()
+}
+object Main extends TestCase3 with Application
diff --git a/test/files/pos/t0273.scala b/test/files/pos/t0273.scala
new file mode 100644
index 0000000000..de94829e8b
--- /dev/null
+++ b/test/files/pos/t0273.scala
@@ -0,0 +1,4 @@
+object Test {
+def a = () => ()
+def a[T] = (p:A) => ()
+}
diff --git a/test/pending/pos/t0288/Foo.scala b/test/pending/pos/t0288/Foo.scala
new file mode 100644
index 0000000000..778ba65f58
--- /dev/null
+++ b/test/pending/pos/t0288/Foo.scala
@@ -0,0 +1,9 @@
+package test2;
+
+import test.Outer;
+
+class Foo extends Outer{
+
+ val bar = new Inner(); // Shouldn't this work?
+
+}
diff --git a/test/pending/pos/t0288/Outer.java b/test/pending/pos/t0288/Outer.java
new file mode 100644
index 0000000000..bea3e3f8d0
--- /dev/null
+++ b/test/pending/pos/t0288/Outer.java
@@ -0,0 +1,9 @@
+package test;
+
+public class Outer{
+
+ public class Inner{
+
+ }
+
+}