From 94821afbdc8f6adbbad992972a89cc843b3e27a8 Mon Sep 17 00:00:00 2001 From: Martin Odersky Date: Sun, 7 Jun 2015 16:46:44 +0200 Subject: Bring back tests from disabled. The tests in this commit pos were verified to work again. --- tests/disabled/pos/simplesams.scala | 9 --------- tests/disabled/pos/t1237.scala | 14 -------------- tests/disabled/pos/t2669.scala | 29 ----------------------------- 3 files changed, 52 deletions(-) delete mode 100644 tests/disabled/pos/simplesams.scala delete mode 100644 tests/disabled/pos/t1237.scala delete mode 100644 tests/disabled/pos/t2669.scala (limited to 'tests/disabled') 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 -} -- cgit v1.2.3