diff options
author | mihaylov <mihaylov@epfl.ch> | 2006-11-01 16:03:28 +0000 |
---|---|---|
committer | mihaylov <mihaylov@epfl.ch> | 2006-11-01 16:03:28 +0000 |
commit | 257a1845d3db3477a0b5939e94d77b0495d89561 (patch) | |
tree | 0aedf35621282407918e0f56b3b5ffc0952e6a14 /test/files/run/bugs.scala | |
parent | 8b0cd5cf7c2a682dd70d6b8ea32b521015bf2269 (diff) | |
download | scala-257a1845d3db3477a0b5939e94d77b0495d89561.tar.gz scala-257a1845d3db3477a0b5939e94d77b0495d89561.tar.bz2 scala-257a1845d3db3477a0b5939e94d77b0495d89561.zip |
Refactored portability support
Diffstat (limited to 'test/files/run/bugs.scala')
-rw-r--r-- | test/files/run/bugs.scala | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/test/files/run/bugs.scala b/test/files/run/bugs.scala index 6d0075332d..0f77bd5f34 100644 --- a/test/files/run/bugs.scala +++ b/test/files/run/bugs.scala @@ -169,7 +169,7 @@ trait Bug176A { def test = foo(bar); } trait Bug176B { - type S <: Object; + type S <: AnyRef; type T = S; def foo(x: S): Int; def bar: S; @@ -215,13 +215,13 @@ object Bug213Test { try { foo.testAll; } catch { - case e: compat.Platform.ClassCastException => + case e: ClassCastException => Console.println("Cannot cast unit to Nothing"); } try { foo.testAllRef; } catch { - case e: compat.Platform.ClassCastException => + case e: ClassCastException => Console.println("Cannot cast empty string to Null"); } () @@ -445,7 +445,7 @@ object Test { test; } catch { case exception => { - val curr: String = compat.Platform.currentThread.toString(); + val curr: String = currentThread.toString(); Console.print("Exception in thread \"" + curr + "\" " + exception); Console.println; errors = errors + 1; |