summaryrefslogtreecommitdiff
path: root/test/pending
diff options
context:
space:
mode:
authorPaul Phillips <paulp@improving.org>2010-01-28 05:46:06 +0000
committerPaul Phillips <paulp@improving.org>2010-01-28 05:46:06 +0000
commitf6c69106d3baa59479e839727acc03ae4035519d (patch)
treeaf854700d4d9d2e0e0f330a08be2ca77c3dfe9ef /test/pending
parent953fecc029a25c1c0cdd1ce847294bc6f7db8e33 (diff)
downloadscala-f6c69106d3baa59479e839727acc03ae4035519d.tar.gz
scala-f6c69106d3baa59479e839727acc03ae4035519d.tar.bz2
scala-f6c69106d3baa59479e839727acc03ae4035519d.zip
One of those "$.05 for the bolt, $50,000 for kn...
One of those "$.05 for the bolt, $50,000 for knowing where to put it" commits. Closes #425, #816, #2310, #2691. All credit for this patch goes to me for having the genius to know when new eyes were needed (although if you're feeling generous some could also go to walter korman for the actual debugging and code writing part.)
Diffstat (limited to 'test/pending')
-rw-r--r--test/pending/pos/t0816.scala12
-rw-r--r--test/pending/pos/t1035.scala32
-rw-r--r--test/pending/pos/t2691.scala9
-rw-r--r--test/pending/pos/t425.scala11
-rw-r--r--test/pending/run/bugs425-and-816.scala27
5 files changed, 0 insertions, 91 deletions
diff --git a/test/pending/pos/t0816.scala b/test/pending/pos/t0816.scala
deleted file mode 100644
index 44282ea872..0000000000
--- a/test/pending/pos/t0816.scala
+++ /dev/null
@@ -1,12 +0,0 @@
-abstract class Atest(val data: String)
-
-case class Btest(override val data: String, val b: boolean) extends Atest(data)
-
-case class Ctest(override val data: String) extends Btest(data, true)
-
-class testCaseClass {
- def test(x: Atest) = x match {
- case Ctest(data) => Console.println("C")
- case Btest(data, b) => Console.println("B")
- }
-}
diff --git a/test/pending/pos/t1035.scala b/test/pending/pos/t1035.scala
deleted file mode 100644
index a280a415d2..0000000000
--- a/test/pending/pos/t1035.scala
+++ /dev/null
@@ -1,32 +0,0 @@
-//A fatal error or Scala compiler
-// Scala compiler version 2.7.1-final -- (c) 2002-2010 LAMP/EPFL
-// Carlos Loria cloria@artinsoft.com
-// 7/10/2008
-
-class A {
- var name:String = _
- def getName() = name
- def this(name:String, age:Int){this();this.name=name}
-
-}
-
-class B(name:String) extends A(name,0){
-}
-
-class D {
-
- object A {
- def unapply(p:A) = Some(p.getName)
- }
-
- object B {
- def unapply(p:B) = Some(p.getName)
- }
- def foo(p:Any) = p match {
- case B(n) => println("B")
- case A(n) => println("A")
-
-
- }
-
-}
diff --git a/test/pending/pos/t2691.scala b/test/pending/pos/t2691.scala
deleted file mode 100644
index ba2e52f1fe..0000000000
--- a/test/pending/pos/t2691.scala
+++ /dev/null
@@ -1,9 +0,0 @@
-object Breakdown {
- def unapplySeq(x: Int): Some[List[String]] = Some(List("", "there"))
-}
-object Test {
- 42 match {
- case Breakdown("") => // needed to trigger bug
- case Breakdown("", who) => println ("hello " + who)
- }
-} \ No newline at end of file
diff --git a/test/pending/pos/t425.scala b/test/pending/pos/t425.scala
deleted file mode 100644
index e50c50ac35..0000000000
--- a/test/pending/pos/t425.scala
+++ /dev/null
@@ -1,11 +0,0 @@
-object Temp{
- case class A(x: Int)
- case class B(override val x: Int, y: Double) extends A(x)
-
- val b: A = B(5, 3.3)
- b match {
- case B(x, y) => Console.println(y)
- case A(x) => Console.println(x)
- }
-}
-
diff --git a/test/pending/run/bugs425-and-816.scala b/test/pending/run/bugs425-and-816.scala
deleted file mode 100644
index d9267d06af..0000000000
--- a/test/pending/run/bugs425-and-816.scala
+++ /dev/null
@@ -1,27 +0,0 @@
-object Test {
- object bug425 {
- case class A(x: Int)
- case class B(override val x: Int, y: Double) extends A(x)
-
- val b: A = B(5, 3.3)
- b match {
- case B(x, y) => Console.println(y)
- case A(x) => Console.println(x)
- }
- }
-
- object bug816 {
- abstract class Atest(val data: String)
-
- case class Btest(override val data: String, val b: boolean) extends Atest(data)
-
- case class Ctest(override val data: String) extends Btest(data, true)
-
- class testCaseClass {
- def test(x: Atest) = x match {
- case Ctest(data) => Console.println("C")
- case Btest(data, b) => Console.println("B")
- }
- }
- }
-}