From 20f6e9d9efb6ece9a8844cfe011ac1cc663c378e Mon Sep 17 00:00:00 2001 From: Martin Odersky Date: Wed, 27 May 2015 10:25:05 +0200 Subject: Categorize disabled tests into pos/run --- tests/disabled/i530-import-symbolic.scala | 8 -------- tests/disabled/pos/i530-import-symbolic.scala | 8 ++++++++ tests/disabled/pos/simplesams.scala | 9 +++++++++ tests/disabled/pos/t1237.scala | 14 +++++++++++++ tests/disabled/pos/t2669.scala | 29 +++++++++++++++++++++++++++ tests/disabled/pos/t3174.scala | 14 +++++++++++++ tests/disabled/simplesams.scala | 9 --------- tests/disabled/t1237.scala | 14 ------------- tests/disabled/t2669.scala | 29 --------------------------- tests/disabled/t3174.scala | 14 ------------- 10 files changed, 74 insertions(+), 74 deletions(-) delete mode 100644 tests/disabled/i530-import-symbolic.scala create mode 100644 tests/disabled/pos/i530-import-symbolic.scala create mode 100644 tests/disabled/pos/simplesams.scala create mode 100644 tests/disabled/pos/t1237.scala create mode 100644 tests/disabled/pos/t2669.scala create mode 100644 tests/disabled/pos/t3174.scala delete mode 100644 tests/disabled/simplesams.scala delete mode 100644 tests/disabled/t1237.scala delete mode 100644 tests/disabled/t2669.scala delete mode 100644 tests/disabled/t3174.scala diff --git a/tests/disabled/i530-import-symbolic.scala b/tests/disabled/i530-import-symbolic.scala deleted file mode 100644 index f2c541af4..000000000 --- a/tests/disabled/i530-import-symbolic.scala +++ /dev/null @@ -1,8 +0,0 @@ -object P { - def !#@ : Nothing = ??? -} - -object Test { - import P.!#@ - def f = !#@ -} diff --git a/tests/disabled/pos/i530-import-symbolic.scala b/tests/disabled/pos/i530-import-symbolic.scala new file mode 100644 index 000000000..f2c541af4 --- /dev/null +++ b/tests/disabled/pos/i530-import-symbolic.scala @@ -0,0 +1,8 @@ +object P { + def !#@ : Nothing = ??? +} + +object Test { + import P.!#@ + def f = !#@ +} diff --git a/tests/disabled/pos/simplesams.scala b/tests/disabled/pos/simplesams.scala new file mode 100644 index 000000000..14a7ba6c0 --- /dev/null +++ b/tests/disabled/pos/simplesams.scala @@ -0,0 +1,9 @@ +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 new file mode 100644 index 000000000..31ba2966a --- /dev/null +++ b/tests/disabled/pos/t1237.scala @@ -0,0 +1,14 @@ +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 new file mode 100644 index 000000000..609e88786 --- /dev/null +++ b/tests/disabled/pos/t2669.scala @@ -0,0 +1,29 @@ +// #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 new file mode 100644 index 000000000..8d9b2578d --- /dev/null +++ b/tests/disabled/pos/t3174.scala @@ -0,0 +1,14 @@ +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/simplesams.scala b/tests/disabled/simplesams.scala deleted file mode 100644 index 14a7ba6c0..000000000 --- a/tests/disabled/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/t1237.scala b/tests/disabled/t1237.scala deleted file mode 100644 index 31ba2966a..000000000 --- a/tests/disabled/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/t2669.scala b/tests/disabled/t2669.scala deleted file mode 100644 index 609e88786..000000000 --- a/tests/disabled/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/t3174.scala b/tests/disabled/t3174.scala deleted file mode 100644 index 8d9b2578d..000000000 --- a/tests/disabled/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 - } - } -- cgit v1.2.3