summaryrefslogtreecommitdiff
path: root/test/files/neg/t5799.check
diff options
context:
space:
mode:
authorMartin Odersky <odersky@gmail.com>2012-07-29 16:23:20 +0200
committerMartin Odersky <odersky@gmail.com>2012-07-29 16:23:28 +0200
commitaad84ecba3eda180197bfbbb45a02393358c4c46 (patch)
tree0c526989052124b270825cfa4e4fa61346948016 /test/files/neg/t5799.check
parent95d53235834ab650ded6768958697d2901fd4dd3 (diff)
downloadscala-aad84ecba3eda180197bfbbb45a02393358c4c46.tar.gz
scala-aad84ecba3eda180197bfbbb45a02393358c4c46.tar.bz2
scala-aad84ecba3eda180197bfbbb45a02393358c4c46.zip
SI-5799 Secondary constructors in value classes not allowed
I changed the SIP and added a test.
Diffstat (limited to 'test/files/neg/t5799.check')
-rw-r--r--test/files/neg/t5799.check4
1 files changed, 4 insertions, 0 deletions
diff --git a/test/files/neg/t5799.check b/test/files/neg/t5799.check
new file mode 100644
index 0000000000..10e2658d56
--- /dev/null
+++ b/test/files/neg/t5799.check
@@ -0,0 +1,4 @@
+t5799.scala:2: error: value class may not have secondary constructors
+ def this(s: String) = this(s.toDouble)
+ ^
+one error found