diff options
author | Martin Odersky <odersky@gmail.com> | 2006-10-06 17:34:40 +0000 |
---|---|---|
committer | Martin Odersky <odersky@gmail.com> | 2006-10-06 17:34:40 +0000 |
commit | 83b51eccb8dd72b5d5cffdd5c9b04f73dd292392 (patch) | |
tree | e3dc0f49e278d40a3b82443c4fadf6a31ab28273 /test/files/run/bugs.scala | |
parent | d7a4f76d25820df20c9e8cd6594fa635f666dfe3 (diff) | |
download | scala-83b51eccb8dd72b5d5cffdd5c9b04f73dd292392.tar.gz scala-83b51eccb8dd72b5d5cffdd5c9b04f73dd292392.tar.bz2 scala-83b51eccb8dd72b5d5cffdd5c9b04f73dd292392.zip |
renamed All->Nothing, AllRef -> Null while keep...
renamed All->Nothing, AllRef -> Null while keeping the old names as
aliases.
Diffstat (limited to 'test/files/run/bugs.scala')
-rw-r--r-- | test/files/run/bugs.scala | 10 |
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); } } |