diff options
author | michelou <michelou@epfl.ch> | 2008-05-20 13:29:39 +0000 |
---|---|---|
committer | michelou <michelou@epfl.ch> | 2008-05-20 13:29:39 +0000 |
commit | c1f07338ed21e551446a5c98d262d738a9b7b0ce (patch) | |
tree | 8143f69f0b97ff8bb02600991476b104afa652dc /test/files/pos/testcast.scala | |
parent | 7d71e4cf09074f3d1cf7539d28bba64a976524d6 (diff) | |
download | scala-c1f07338ed21e551446a5c98d262d738a9b7b0ce.tar.gz scala-c1f07338ed21e551446a5c98d262d738a9b7b0ce.tar.bz2 scala-c1f07338ed21e551446a5c98d262d738a9b7b0ce.zip |
int -> Int, etc..
Diffstat (limited to 'test/files/pos/testcast.scala')
-rw-r--r-- | test/files/pos/testcast.scala | 17 |
1 files changed, 9 insertions, 8 deletions
diff --git a/test/files/pos/testcast.scala b/test/files/pos/testcast.scala index 2a78b5f2a2..d4184e4f0b 100644 --- a/test/files/pos/testcast.scala +++ b/test/files/pos/testcast.scala @@ -1,26 +1,27 @@ -package test; +package test class A; class B extends A { - def foo: int = 1; + def foo: Int = 1 } object B { - def view(x: B): B1 = null; + def view(x: B): B1 = null } class B1 { - def bar: int = 1 + def bar: Int = 1 } object C { - implicit def view(x: A): B1 = null; + implicit def view(x: A): B1 = null } + object Test { - import C.view; + import C.view - val b: B = null; + val b: B = null - Console.println(b.bar); + println(b.bar) } |