summaryrefslogtreecommitdiff
path: root/test/files/run/constructors.scala
diff options
context:
space:
mode:
authormihaylov <mihaylov@epfl.ch>2005-09-27 08:24:43 +0000
committermihaylov <mihaylov@epfl.ch>2005-09-27 08:24:43 +0000
commitff21a4fbafeb04afbd4dade2a217a4de2ab034f9 (patch)
tree6ed4066269260129cb3085deded9374f8b1f6b9d /test/files/run/constructors.scala
parent5f6f5f723b884cd41d1233340590e2bf95d90588 (diff)
downloadscala-ff21a4fbafeb04afbd4dade2a217a4de2ab034f9.tar.gz
scala-ff21a4fbafeb04afbd4dade2a217a4de2ab034f9.tar.bz2
scala-ff21a4fbafeb04afbd4dade2a217a4de2ab034f9.zip
Made platform independant
Diffstat (limited to 'test/files/run/constructors.scala')
-rw-r--r--test/files/run/constructors.scala12
1 files changed, 5 insertions, 7 deletions
diff --git a/test/files/run/constructors.scala b/test/files/run/constructors.scala
index f46088fa00..e85f3b8667 100644
--- a/test/files/run/constructors.scala
+++ b/test/files/run/constructors.scala
@@ -2,8 +2,6 @@
// Test constructors, including multiple ones.
-import java.lang.System; // to avoid name clash with .NET's library
-
class A(x: Int, y: Int) {
def this(x: Int) = this(x, x);
def this() = this(1);
@@ -22,10 +20,10 @@ object Test {
val a3 = new A();
val b1 = new a1.B(1,2,"a");
val b2 = new a2.B("b");
- System.out.println(a1);
- System.out.println(a2);
- System.out.println(a3);
- System.out.println(b1);
- System.out.println(b2);
+ Console.println(a1);
+ Console.println(a2);
+ Console.println(a3);
+ Console.println(b1);
+ Console.println(b2);
}
}