diff options
Diffstat (limited to 'tests/disabled')
-rw-r--r-- | tests/disabled/pos/simplesams.scala | 9 | ||||
-rw-r--r-- | tests/disabled/pos/t1237.scala | 14 | ||||
-rw-r--r-- | tests/disabled/pos/t2669.scala | 29 | ||||
-rw-r--r-- | tests/disabled/pos/t3174.scala | 14 | ||||
-rwxr-xr-x | tests/disabled/t2503.scala | 19 | ||||
-rw-r--r-- | tests/disabled/t5577.scala | 27 |
6 files changed, 0 insertions, 112 deletions
diff --git a/tests/disabled/pos/simplesams.scala b/tests/disabled/pos/simplesams.scala deleted file mode 100644 index 14a7ba6c0..000000000 --- a/tests/disabled/pos/simplesams.scala +++ /dev/null @@ -1,9 +0,0 @@ -package test - -trait X { def foo(x: Int): Int; def bar = foo(2) } -trait XX extends X - -object test { - val x: X = (x: Int) => 2 // should be a closure - val xx: XX = (x: Int) => 2 // should be a closure, but blows up in backend -} diff --git a/tests/disabled/pos/t1237.scala b/tests/disabled/pos/t1237.scala deleted file mode 100644 index 31ba2966a..000000000 --- a/tests/disabled/pos/t1237.scala +++ /dev/null @@ -1,14 +0,0 @@ -class HelloWorld { - def main(args: Array[String]): Unit = { - - object TypeBool; - - trait Fct { - def g(x : Int) = TypeBool // breaks. - - // def g(x : Int) = 3 // fine. - } - - () - } -} diff --git a/tests/disabled/pos/t2669.scala b/tests/disabled/pos/t2669.scala deleted file mode 100644 index 609e88786..000000000 --- a/tests/disabled/pos/t2669.scala +++ /dev/null @@ -1,29 +0,0 @@ -// #2629, #2639, #2669 -// dies in classfile parser while parsing java.util.Vector(requested by bakend) -object Test2669 { - - def test[T](l: java.util.ArrayList[_ <: T]) = 1 - test(new java.util.ArrayList[String]()) - -} - -import java.util.ArrayList - -object Test2629 { - def main(args: Array[String]): Unit = { - val l = new ArrayList[String](1) - val m = new ArrayList(l) - - println(l.size) - println(m.size) - } -} - - -import java.util.Vector - -// scalac cannot detect lack of type params, but then throws AssertionError later: -class TVector2639 { - val b = new Vector // this line passed without error detected - val a = new Vector(1) // this line caused throwing AssertionError when scalac -} diff --git a/tests/disabled/pos/t3174.scala b/tests/disabled/pos/t3174.scala deleted file mode 100644 index 8d9b2578d..000000000 --- a/tests/disabled/pos/t3174.scala +++ /dev/null @@ -1,14 +0,0 @@ -object test { - def method(): Unit = { - class Foo extends AnyRef { - object Color { - object Blue - } - - class Board { - val grid = Color.Blue - } - } - new Foo - } - } diff --git a/tests/disabled/t2503.scala b/tests/disabled/t2503.scala deleted file mode 100755 index d0983f2ca..000000000 --- a/tests/disabled/t2503.scala +++ /dev/null @@ -1,19 +0,0 @@ -import scala.collection.mutable._ - -trait SB[A] extends Buffer[A] { - - import collection.Traversable - - abstract override def insertAll(n: Int, iter: Traversable[A]): Unit = synchronized { - super.insertAll(n, iter) - } - - abstract override def update(n: Int, newelem: A): Unit = synchronized { - super.update(n, newelem) - } -} - -object Test extends dotty.runtime.LegacyApp { - new ArrayBuffer[Int] with SB[Int] -} - diff --git a/tests/disabled/t5577.scala b/tests/disabled/t5577.scala deleted file mode 100644 index d54a37e45..000000000 --- a/tests/disabled/t5577.scala +++ /dev/null @@ -1,27 +0,0 @@ - - - -import collection._ - - - -object Test { - - class AlarmingBuffer[T] extends mutable.ArrayBuffer[T] { - override def sizeHint(x: Int): Unit = { - println("Received a size hint: " + x) - super.sizeHint(x) - } - } - - def main(args: Array[String]): Unit = { - val iteratorBuilder = (new AlarmingBuffer[Int]) mapResult { - res => res.iterator - } - - iteratorBuilder.sizeHint(10) - iteratorBuilder ++= (0 until 10) - iteratorBuilder.result.foreach(println) - } - -} |