summaryrefslogtreecommitdiff
path: root/test/files/pos/testcast.scala
diff options
context:
space:
mode:
authormichelou <michelou@epfl.ch>2008-05-20 13:29:39 +0000
committermichelou <michelou@epfl.ch>2008-05-20 13:29:39 +0000
commitc1f07338ed21e551446a5c98d262d738a9b7b0ce (patch)
tree8143f69f0b97ff8bb02600991476b104afa652dc /test/files/pos/testcast.scala
parent7d71e4cf09074f3d1cf7539d28bba64a976524d6 (diff)
downloadscala-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.scala17
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)
}