summaryrefslogtreecommitdiff
path: root/test/files/run/bugs.scala
diff options
context:
space:
mode:
Diffstat (limited to 'test/files/run/bugs.scala')
-rw-r--r--test/files/run/bugs.scala10
1 files changed, 5 insertions, 5 deletions
diff --git a/test/files/run/bugs.scala b/test/files/run/bugs.scala
index 6c24a198de..fc9c735ec9 100644
--- a/test/files/run/bugs.scala
+++ b/test/files/run/bugs.scala
@@ -214,8 +214,8 @@ trait Bug213Foo {
}
class Bug213Bar extends Bug213Foo {
- def testAll = (().asInstanceOf[All] : All);
- def testAllRef = ("".asInstanceOf[AllRef] : AllRef);
+ def testAll = (().asInstanceOf[Nothing] : Nothing);
+ def testAllRef = ("".asInstanceOf[Null] : Null);
}
object Bug213Test {
@@ -225,13 +225,13 @@ object Bug213Test {
foo.testAll;
} catch {
case e: java.lang.ClassCastException =>
- Console.println("Cannot cast unit to All");
+ Console.println("Cannot cast unit to Nothing");
}
try {
foo.testAllRef;
} catch {
case e: java.lang.ClassCastException =>
- Console.println("Cannot cast empty string to AllRef");
+ Console.println("Cannot cast empty string to Null");
}
()
}
@@ -335,7 +335,7 @@ object Bug257Test {
// version - A
abstract class Bug266AFoo {
- type T >: AllRef <: AnyRef;
+ type T >: Null <: AnyRef;
abstract class I0 { def f(x: T): Unit; f(null); }
}