summaryrefslogtreecommitdiff
path: root/test/files
diff options
context:
space:
mode:
authorPaul Phillips <paulp@improving.org>2011-01-19 03:53:44 +0000
committerPaul Phillips <paulp@improving.org>2011-01-19 03:53:44 +0000
commitd6816e01433d88b474bbd0a7290bdc96890b9f37 (patch)
tree854cbf689ea640d7ada202bdfc646515b253ffb6 /test/files
parent5d8c6c898aa4031c69f9ef0f0dbe8a82e51f793e (diff)
downloadscala-d6816e01433d88b474bbd0a7290bdc96890b9f37.tar.gz
scala-d6816e01433d88b474bbd0a7290bdc96890b9f37.tar.bz2
scala-d6816e01433d88b474bbd0a7290bdc96890b9f37.zip
Moved and removed a bunch of tests from pending.
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