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/pos/t2669.scala | |
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/pos/t2669.scala')
-rw-r--r-- | tests/pos/t2669.scala | 28 |
1 files changed, 0 insertions, 28 deletions
diff --git a/tests/pos/t2669.scala b/tests/pos/t2669.scala deleted file mode 100644 index 72e931178..000000000 --- a/tests/pos/t2669.scala +++ /dev/null @@ -1,28 +0,0 @@ -// #2629, #2639, #2669 -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 -} |