diff options
author | Dmitry Petrashko <dmitry.petrashko@gmail.com> | 2015-02-10 13:21:17 +0100 |
---|---|---|
committer | Dmitry Petrashko <dmitry.petrashko@gmail.com> | 2015-02-11 11:37:48 +0100 |
commit | 1892e77808b148eba34c409db98d15a886a74069 (patch) | |
tree | 4c7594a8fe95fc2e1f64a9aef0e48b98fb510feb /tests/disabled | |
parent | fb84ab55f4fd234c35ad85083092e9c5fe676370 (diff) | |
download | dotty-1892e77808b148eba34c409db98d15a886a74069.tar.gz dotty-1892e77808b148eba34c409db98d15a886a74069.tar.bz2 dotty-1892e77808b148eba34c409db98d15a886a74069.zip |
Disable t2669 dies in Classfile parser while parsing java.util.Vector(requested by backend)
Diffstat (limited to 'tests/disabled')
-rw-r--r-- | tests/disabled/t2669.scala | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/tests/disabled/t2669.scala b/tests/disabled/t2669.scala new file mode 100644 index 000000000..609e88786 --- /dev/null +++ b/tests/disabled/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 +} |