diff options
author | Iulian Dragos <jaguarul@gmail.com> | 2010-04-09 15:42:24 +0000 |
---|---|---|
committer | Iulian Dragos <jaguarul@gmail.com> | 2010-04-09 15:42:24 +0000 |
commit | d76943f9ae43176980f21f90f400053fe2da3fbf (patch) | |
tree | d43b33f4cc1055f78ec2853164d61171fec17f3c /test/files/neg | |
parent | 73648228fffb462113ebfa6222824cc229cf808c (diff) | |
download | scala-d76943f9ae43176980f21f90f400053fe2da3fbf.tar.gz scala-d76943f9ae43176980f21f90f400053fe2da3fbf.tar.bz2 scala-d76943f9ae43176980f21f90f400053fe2da3fbf.zip |
Companion objects of primitive types are now va...
Companion objects of primitive types are now values. Term 'scala.Int'
resolves in bytecode to an instance of 'scala.runtime.Int'. This is
the first step towards replacing strings in @specialized with a proper
list of types, so instead of @specialized("Int, Float") one will write
@specialized(Int, Float). Review by odersky.
Diffstat (limited to 'test/files/neg')
-rw-r--r-- | test/files/neg/bug1392.check | 4 | ||||
-rw-r--r-- | test/files/neg/bug1392.scala | 1 | ||||
-rw-r--r-- | test/files/neg/bug3123.check | 4 | ||||
-rw-r--r-- | test/files/neg/bug3123.scala | 5 |
4 files changed, 0 insertions, 14 deletions
diff --git a/test/files/neg/bug1392.check b/test/files/neg/bug1392.check deleted file mode 100644 index e4c9630435..0000000000 --- a/test/files/neg/bug1392.check +++ /dev/null @@ -1,4 +0,0 @@ -bug1392.scala:1: error: object Int is not a value -object X extends Application { Int } - ^ -one error found diff --git a/test/files/neg/bug1392.scala b/test/files/neg/bug1392.scala deleted file mode 100644 index 54a4b9e908..0000000000 --- a/test/files/neg/bug1392.scala +++ /dev/null @@ -1 +0,0 @@ -object X extends Application { Int } diff --git a/test/files/neg/bug3123.check b/test/files/neg/bug3123.check deleted file mode 100644 index 8f5319c9a3..0000000000 --- a/test/files/neg/bug3123.check +++ /dev/null @@ -1,4 +0,0 @@ -bug3123.scala:3: error: object Int is not a value - t match { case Int => true } - ^ -one error found diff --git a/test/files/neg/bug3123.scala b/test/files/neg/bug3123.scala deleted file mode 100644 index 667a1da918..0000000000 --- a/test/files/neg/bug3123.scala +++ /dev/null @@ -1,5 +0,0 @@ -object NotAValue { - def test[T](t : T) { - t match { case Int => true } - } -} |