summaryrefslogtreecommitdiff
path: root/test/files/neg/t5666.check
diff options
context:
space:
mode:
authorPaul Phillips <paulp@improving.org>2012-05-01 18:27:05 -0700
committerPaul Phillips <paulp@improving.org>2012-05-01 19:52:09 -0700
commite69ee3676dec6023a0d552a6dbabf9ffd29a7111 (patch)
treea80d8cc54630b3ed78c12b87c85db96359dbe6ab /test/files/neg/t5666.check
parentae5ff6628bb74c16d871a2ada0664cdd5d2399a5 (diff)
downloadscala-e69ee3676dec6023a0d552a6dbabf9ffd29a7111.tar.gz
scala-e69ee3676dec6023a0d552a6dbabf9ffd29a7111.tar.bz2
scala-e69ee3676dec6023a0d552a6dbabf9ffd29a7111.zip
Hackaround for people who like to instantiate the uninstantiable.
Closes SI-5666 again. (I don't have the least clue how I'm supposed to issue the error.)
Diffstat (limited to 'test/files/neg/t5666.check')
-rw-r--r--test/files/neg/t5666.check29
1 files changed, 28 insertions, 1 deletions
diff --git a/test/files/neg/t5666.check b/test/files/neg/t5666.check
index 2b8b9077bb..4289b00ade 100644
--- a/test/files/neg/t5666.check
+++ b/test/files/neg/t5666.check
@@ -4,7 +4,34 @@ t5666.scala:2: error: class Any is abstract; cannot be instantiated
t5666.scala:3: error: class AnyVal is abstract; cannot be instantiated
new AnyVal
^
+t5666.scala:4: error: Double does not have a constructor
+ new Double
+ ^
+t5666.scala:5: error: Float does not have a constructor
+ new Float
+ ^
+t5666.scala:6: error: Long does not have a constructor
+ new Long
+ ^
+t5666.scala:7: error: Int does not have a constructor
+ new Int
+ ^
+t5666.scala:8: error: Char does not have a constructor
+ new Char
+ ^
+t5666.scala:9: error: Short does not have a constructor
+ new Short
+ ^
+t5666.scala:10: error: Byte does not have a constructor
+ new Byte
+ ^
+t5666.scala:11: error: Boolean does not have a constructor
+ new Boolean
+ ^
+t5666.scala:12: error: Unit does not have a constructor
+ new Unit
+ ^
t5666.scala:13: error: class Nothing is abstract; cannot be instantiated
new Nothing
^
-three errors found
+12 errors found