summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
Diffstat (limited to 'test')
-rw-r--r--test/files/neg/variances.scala4
-rw-r--r--test/testall7
2 files changed, 9 insertions, 2 deletions
diff --git a/test/files/neg/variances.scala b/test/files/neg/variances.scala
index fbd50d7065..393a3e0b7d 100644
--- a/test/files/neg/variances.scala
+++ b/test/files/neg/variances.scala
@@ -50,12 +50,12 @@ object Covariant {
val b : Int = 42
}
class Test extends AbstractTest {
- val a : Foo[Char] = new Foo[Char]
+ val a : Foo[java.lang.Character] = new Foo[java.lang.Character]
}
def main(args : Array[String]) {
val test = new Test
test.c.doit(test.b)
- val x : Char = test.a.getA
+ val x : java.lang.Character = test.a.getA
Console.println("XXX " + x)
}
}
diff --git a/test/testall b/test/testall
new file mode 100644
index 0000000000..8cf9317db1
--- /dev/null
+++ b/test/testall
@@ -0,0 +1,7 @@
+sh partest --jvm
+sh partest --pos
+sh partest --neg
+sh partest --shootout
+sh partest --script
+sh partest --res
+