summaryrefslogtreecommitdiff
path: root/test/files/run
diff options
context:
space:
mode:
authorMartin Odersky <odersky@gmail.com>2006-06-27 15:27:12 +0000
committerMartin Odersky <odersky@gmail.com>2006-06-27 15:27:12 +0000
commit972ecebb2794655b543fde5c8a4f75614729ce5c (patch)
tree185a9cdad776cd2bda468f79797ff362fa22e006 /test/files/run
parent5a17c91819ebeca83dcdfcfb1dc49e1bc7322a87 (diff)
downloadscala-972ecebb2794655b543fde5c8a4f75614729ce5c.tar.gz
scala-972ecebb2794655b543fde5c8a4f75614729ce5c.tar.bz2
scala-972ecebb2794655b543fde5c8a4f75614729ce5c.zip
Fixed bugs 633, 637, 639, 640
Diffstat (limited to 'test/files/run')
-rw-r--r--test/files/run/bigints.check5
-rwxr-xr-xtest/files/run/bigints.scala14
-rw-r--r--test/files/run/bug629.check1
-rw-r--r--test/files/run/bug629.scala13
4 files changed, 33 insertions, 0 deletions
diff --git a/test/files/run/bigints.check b/test/files/run/bigints.check
new file mode 100644
index 0000000000..fb50db6447
--- /dev/null
+++ b/test/files/run/bigints.check
@@ -0,0 +1,5 @@
+3
+true
+false
+true
+true
diff --git a/test/files/run/bigints.scala b/test/files/run/bigints.scala
new file mode 100755
index 0000000000..f1328274c6
--- /dev/null
+++ b/test/files/run/bigints.scala
@@ -0,0 +1,14 @@
+object Test extends Application {
+ import BigInt._
+
+ val x: BigInt = 1
+ val y = x + 1
+ val z = 1 + y
+ System.out.println(z)
+ System.out.println(z <= 3)
+ System.out.println(3 < z)
+ System.out.println(z == 3)
+ System.out.println(3 == z)
+
+}
+
diff --git a/test/files/run/bug629.check b/test/files/run/bug629.check
new file mode 100644
index 0000000000..d86bac9de5
--- /dev/null
+++ b/test/files/run/bug629.check
@@ -0,0 +1 @@
+OK
diff --git a/test/files/run/bug629.scala b/test/files/run/bug629.scala
new file mode 100644
index 0000000000..67baead5f1
--- /dev/null
+++ b/test/files/run/bug629.scala
@@ -0,0 +1,13 @@
+object Test
+{
+ def main(args : Array[String]) : Unit = Console.println(new C(1))
+}
+
+abstract class A(val x : Int)
+
+class C(x : Int) extends A(x)
+{
+ override def toString() = "OK"
+ val v = new D
+ class D { def value = x }
+}