summaryrefslogtreecommitdiff
path: root/test/pending/pos
diff options
context:
space:
mode:
authorPaul Phillips <paulp@improving.org>2009-10-07 17:07:27 +0000
committerPaul Phillips <paulp@improving.org>2009-10-07 17:07:27 +0000
commit6b31849b85532946cb90b2552cb451b58dbd884d (patch)
tree6c343195529c27d43710ae14f77ffc079ccc3ebb /test/pending/pos
parent9f121f57e034a7feb07bad7f67403f3ac75b46d4 (diff)
downloadscala-6b31849b85532946cb90b2552cb451b58dbd884d.tar.gz
scala-6b31849b85532946cb90b2552cb451b58dbd884d.tar.bz2
scala-6b31849b85532946cb90b2552cb451b58dbd884d.zip
Moved a pile of passing tests from pending to f...
Moved a pile of passing tests from pending to files, fixed some untesty tests, and will now close the associated tickets.
Diffstat (limited to 'test/pending/pos')
-rw-r--r--test/pending/pos/bug2005.scala10
-rw-r--r--test/pending/pos/bug2023.scala16
-rw-r--r--test/pending/pos/bug2261.scala6
-rw-r--r--test/pending/pos/switchUnbox.flags1
-rw-r--r--test/pending/pos/switchUnbox.scala11
-rw-r--r--test/pending/pos/t1000.scala3
-rw-r--r--test/pending/pos/t1722.scala10
-rwxr-xr-xtest/pending/pos/t1722/C.scala9
-rwxr-xr-xtest/pending/pos/t1722/Test.scala4
-rwxr-xr-xtest/pending/pos/t1722/Top.scala13
-rw-r--r--test/pending/pos/t1798.scala10
-rw-r--r--test/pending/pos/t1987.scala8
-rw-r--r--test/pending/pos/t2201.scala8
13 files changed, 0 insertions, 109 deletions
diff --git a/test/pending/pos/bug2005.scala b/test/pending/pos/bug2005.scala
deleted file mode 100644
index 2514a5f711..0000000000
--- a/test/pending/pos/bug2005.scala
+++ /dev/null
@@ -1,10 +0,0 @@
-object Bug {
- def main(args: Array[String]) {
- val a = new Array[Array[Int]](2,2)
- test(a)
- }
- def test[A](t: Array[Array[A]]) {
- val tmp = t(0)
- t(1) = tmp
- }
-}
diff --git a/test/pending/pos/bug2023.scala b/test/pending/pos/bug2023.scala
deleted file mode 100644
index 21c6fc96a6..0000000000
--- a/test/pending/pos/bug2023.scala
+++ /dev/null
@@ -1,16 +0,0 @@
-trait C[A]
-
-object C {
- implicit def ipl[A](implicit from: A => Ordered[A]): C[A] = null
-}
-
-object P {
- def foo[A](i: A, j: A)(implicit c: C[A]): Unit = ()
-}
-
-class ImplicitChainTest {
- def testTrivial: Unit = {
- P.foo('0', '9')
- P.foo('0', '9')
- }
-}
diff --git a/test/pending/pos/bug2261.scala b/test/pending/pos/bug2261.scala
deleted file mode 100644
index a499af838a..0000000000
--- a/test/pending/pos/bug2261.scala
+++ /dev/null
@@ -1,6 +0,0 @@
-object Test extends Application {
- class Bob[T]
- implicit def foo2bar[T](xs: List[T]): Bob[T] = new Bob[T]
- var x: Bob[Int] = null
- x = List(1,2,3)
-}
diff --git a/test/pending/pos/switchUnbox.flags b/test/pending/pos/switchUnbox.flags
deleted file mode 100644
index ec1ad20e3a..0000000000
--- a/test/pending/pos/switchUnbox.flags
+++ /dev/null
@@ -1 +0,0 @@
--Xsqueeze:on
diff --git a/test/pending/pos/switchUnbox.scala b/test/pending/pos/switchUnbox.scala
deleted file mode 100644
index a97bff5521..0000000000
--- a/test/pending/pos/switchUnbox.scala
+++ /dev/null
@@ -1,11 +0,0 @@
-// this test has accompanying .flags file
-// that contains -Xsqueeze:on
-//
-object Foo {
- var xyz: (int, String) = (1, "abc")
- xyz._1 match {
- case 1 => Console.println("OK")
- case 2 => Console.println("OK")
- case _ => Console.println("KO")
- }
-}
diff --git a/test/pending/pos/t1000.scala b/test/pending/pos/t1000.scala
deleted file mode 100644
index 38f71863d8..0000000000
--- a/test/pending/pos/t1000.scala
+++ /dev/null
@@ -1,3 +0,0 @@
-object A {
- println("""This a "raw" string ending with a "double quote"""")
-}
diff --git a/test/pending/pos/t1722.scala b/test/pending/pos/t1722.scala
deleted file mode 100644
index d059bf22f8..0000000000
--- a/test/pending/pos/t1722.scala
+++ /dev/null
@@ -1,10 +0,0 @@
-sealed trait Top
-trait C {
- private object P extends Top
-}
-/*
-$ scala -e 'new AnyRef with C'
-error: error while loading Top, class file '/private/tmp/bobobo/./Top.class' is broken
-(error reading Scala signature of /private/tmp/bobobo/./Top.class: malformed Scala signature of Top at 185; reference value P of trait C refers to nonexisting symbol.)
-one error found
-*/
diff --git a/test/pending/pos/t1722/C.scala b/test/pending/pos/t1722/C.scala
deleted file mode 100755
index 2695296292..0000000000
--- a/test/pending/pos/t1722/C.scala
+++ /dev/null
@@ -1,9 +0,0 @@
-trait C {
- private object P extends Top
-}
-/*
-$ scala -e 'new AnyRef with C'
-error: error while loading Top, class file '/private/tmp/bobobo/./Top.class' is broken
-(error reading Scala signature of /private/tmp/bobobo/./Top.class: malformed Scala signature of Top at 185; reference value P of trait C refers to nonexisting symbol.)
-one error found
-*/
diff --git a/test/pending/pos/t1722/Test.scala b/test/pending/pos/t1722/Test.scala
deleted file mode 100755
index 4cba7ab01b..0000000000
--- a/test/pending/pos/t1722/Test.scala
+++ /dev/null
@@ -1,4 +0,0 @@
-package t1722
-object Test {
- val x = new AnyRef with C
-}
diff --git a/test/pending/pos/t1722/Top.scala b/test/pending/pos/t1722/Top.scala
deleted file mode 100755
index 4ac52412aa..0000000000
--- a/test/pending/pos/t1722/Top.scala
+++ /dev/null
@@ -1,13 +0,0 @@
-package t1722
-
-sealed trait Top
-trait C {
- private object P extends Top
-}
-/*
-$ scala -e 'new AnyRef with C'
-error: error while loading Top, class file '/private/tmp/bobobo/./Top.class' is broken
-(error reading Scala signature of /private/tmp/bobobo/./Top.class: malformed Scala signature of Top at 185; reference value P of trait C refers to nonexisting symbol.)
-one error found
-Martin: I think this has to do with children property.
-*/
diff --git a/test/pending/pos/t1798.scala b/test/pending/pos/t1798.scala
deleted file mode 100644
index 1624e3025e..0000000000
--- a/test/pending/pos/t1798.scala
+++ /dev/null
@@ -1,10 +0,0 @@
-object Foo { private def bar(): Int = 55 }
-class Foo(x: Int) { def this() = this(Foo.bar()) }
-
-/*
- * scalac28 a.scala
-a.scala:2: error: method bar cannot be accessed in object Foo
-class Foo(x: Int) { def this() = this(Foo.bar()) }
- ^
-one error found
-*/
diff --git a/test/pending/pos/t1987.scala b/test/pending/pos/t1987.scala
deleted file mode 100644
index ccab133716..0000000000
--- a/test/pending/pos/t1987.scala
+++ /dev/null
@@ -1,8 +0,0 @@
-package object overloading {
- def bar(f: (Int) => Unit): Unit = ()
- def bar(f: (Int, Int) => Unit): Unit = ()
-}
-
-class PackageObjectOverloadingTest {
- overloading.bar( (i: Int) => () ) // doesn't compile.
-}
diff --git a/test/pending/pos/t2201.scala b/test/pending/pos/t2201.scala
deleted file mode 100644
index 21af170cf1..0000000000
--- a/test/pending/pos/t2201.scala
+++ /dev/null
@@ -1,8 +0,0 @@
-class Test
-object Test { implicit def view(x : Test) = 0 }
-
-object Call {
- def call(implicit view : Test => Int) = view(null)
- call
- call
-}