summaryrefslogtreecommitdiff
path: root/test/files
diff options
context:
space:
mode:
Diffstat (limited to 'test/files')
-rw-r--r--test/files/pos/t0644.scala12
-rw-r--r--test/files/run/bug3530.check1
-rw-r--r--test/files/run/bug3530.scala9
3 files changed, 22 insertions, 0 deletions
diff --git a/test/files/pos/t0644.scala b/test/files/pos/t0644.scala
new file mode 100644
index 0000000000..a92e2abb53
--- /dev/null
+++ b/test/files/pos/t0644.scala
@@ -0,0 +1,12 @@
+class A {
+ def apply(): Int = 0
+ def update(n: Int) {}
+}
+
+class B extends A {
+ this()
+ this()=1
+ // 644 is wontfix so this is what should work.
+ super.apply()
+ super.update(1)
+}
diff --git a/test/files/run/bug3530.check b/test/files/run/bug3530.check
new file mode 100644
index 0000000000..633c15d9d7
--- /dev/null
+++ b/test/files/run/bug3530.check
@@ -0,0 +1 @@
+Some List
diff --git a/test/files/run/bug3530.scala b/test/files/run/bug3530.scala
new file mode 100644
index 0000000000..f2c0034691
--- /dev/null
+++ b/test/files/run/bug3530.scala
@@ -0,0 +1,9 @@
+object Test {
+ def main(args: Array[String]) {
+ val list = List(1,2,3)
+ list match {
+ case List(_, _) => println("List with two elements")
+ case List(_*) => println("Some List")
+ }
+ }
+} \ No newline at end of file