From 83b51eccb8dd72b5d5cffdd5c9b04f73dd292392 Mon Sep 17 00:00:00 2001 From: Martin Odersky Date: Fri, 6 Oct 2006 17:34:40 +0000 Subject: renamed All->Nothing, AllRef -> Null while keep... renamed All->Nothing, AllRef -> Null while keeping the old names as aliases. --- test/files/run/bugs.scala | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'test/files/run/bugs.scala') 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); } } -- cgit v1.2.3