diff options
author | Martin Odersky <odersky@gmail.com> | 2007-08-20 10:57:43 +0000 |
---|---|---|
committer | Martin Odersky <odersky@gmail.com> | 2007-08-20 10:57:43 +0000 |
commit | 102aadc5f56f6f297b8643563eeb49557e36dd41 (patch) | |
tree | d5be00898604457f1145e2a44bbbcf6c005fbe90 /test/files | |
parent | 5eadca1408d20df1484459309206f97aefc1688d (diff) | |
download | scala-102aadc5f56f6f297b8643563eeb49557e36dd41.tar.gz scala-102aadc5f56f6f297b8643563eeb49557e36dd41.tar.bz2 scala-102aadc5f56f6f297b8643563eeb49557e36dd41.zip |
fixed some bugs related to existentials.
fixed unboxing bug
fixed ByNameFunction problem
some cleanups in parser
Diffstat (limited to 'test/files')
-rw-r--r-- | test/files/run/unboxingBug.check | 6 | ||||
-rwxr-xr-x | test/files/run/unboxingBug.scala | 8 |
2 files changed, 14 insertions, 0 deletions
diff --git a/test/files/run/unboxingBug.check b/test/files/run/unboxingBug.check new file mode 100644 index 0000000000..d6aa7b90f6 --- /dev/null +++ b/test/files/run/unboxingBug.check @@ -0,0 +1,6 @@ +97 +97 +97 +97 +1 +1 diff --git a/test/files/run/unboxingBug.scala b/test/files/run/unboxingBug.scala new file mode 100755 index 0000000000..a8485cfa9e --- /dev/null +++ b/test/files/run/unboxingBug.scala @@ -0,0 +1,8 @@ +object Test extends Application { + println(identity('a').toInt) + println('a'.toInt) + println(identity('a').asInstanceOf[int]) + println('a'.asInstanceOf[int]) + println(identity(1).asInstanceOf[int]) + println(1.asInstanceOf[int]) +} |