diff options
author | Martin Odersky <odersky@gmail.com> | 2015-05-27 10:25:05 +0200 |
---|---|---|
committer | Martin Odersky <odersky@gmail.com> | 2015-05-27 10:30:55 +0200 |
commit | 20f6e9d9efb6ece9a8844cfe011ac1cc663c378e (patch) | |
tree | b2203097deca9177a7b0527007058ec431c39007 /tests/disabled/pos | |
parent | 26788d4caef75fdbe5ed81d50723d36afc21d2ee (diff) | |
download | dotty-20f6e9d9efb6ece9a8844cfe011ac1cc663c378e.tar.gz dotty-20f6e9d9efb6ece9a8844cfe011ac1cc663c378e.tar.bz2 dotty-20f6e9d9efb6ece9a8844cfe011ac1cc663c378e.zip |
Categorize disabled tests into pos/run
Diffstat (limited to 'tests/disabled/pos')
-rw-r--r-- | tests/disabled/pos/i530-import-symbolic.scala | 8 | ||||
-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 |
5 files changed, 74 insertions, 0 deletions
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 + } + } |