summaryrefslogtreecommitdiff
path: root/test-nsc
diff options
context:
space:
mode:
authorIulian Dragos <jaguarul@gmail.com>2005-12-05 14:33:30 +0000
committerIulian Dragos <jaguarul@gmail.com>2005-12-05 14:33:30 +0000
commit0da6b578845f0799b8b1610f2cf6768f64cadcfc (patch)
tree47d0ec4fb9ec16b6c00dcd4c0597402a53221051 /test-nsc
parentdb6216578fe6731930332389a30affe6d81a0663 (diff)
downloadscala-0da6b578845f0799b8b1610f2cf6768f64cadcfc.tar.gz
scala-0da6b578845f0799b8b1610f2cf6768f64cadcfc.tar.bz2
scala-0da6b578845f0799b8b1610f2cf6768f64cadcfc.zip
Added primitive operations to (Byte|Char|Short|...
Added primitive operations to (Byte|Char|Short|Int).java so that less boxing is done.
Diffstat (limited to 'test-nsc')
-rw-r--r--test-nsc/files/run/bugs.check8
-rwxr-xr-xtest-nsc/files/run/bugs.scala16
2 files changed, 5 insertions, 19 deletions
diff --git a/test-nsc/files/run/bugs.check b/test-nsc/files/run/bugs.check
index 1cf55421f8..206d0e9e48 100644
--- a/test-nsc/files/run/bugs.check
+++ b/test-nsc/files/run/bugs.check
@@ -5,7 +5,6 @@ mycase
<<< bug 120
one
A
-two
B
C
>>> bug 120
@@ -68,8 +67,9 @@ true
>>> bug 250
<<< bug 257
-hello
-hello
+I should come 1st and 2nd
+I should come 1st and 2nd
+I should come last
>>> bug 257
<<< bug 266
@@ -93,3 +93,5 @@ C
a
>>> bug 399
+
+1 error
diff --git a/test-nsc/files/run/bugs.scala b/test-nsc/files/run/bugs.scala
index 95e66877bd..2398f23d13 100755
--- a/test-nsc/files/run/bugs.scala
+++ b/test-nsc/files/run/bugs.scala
@@ -319,22 +319,6 @@ object Bug257Test {
}
}
-object Bug257Test {
- def sayhello(): Unit = { Console.println("hello"); };
-
- def f1(x: Unit): Unit = ();
- def f2(x: Unit)(y: Unit): Unit = ();
-
- def f(x: => Unit) = {
- f1(x);
- f2(x);
- }
-
- def main(args: Array[String]): Unit = {
- f(sayhello())
- }
-}
-
//############################################################################
// Bug 266