summaryrefslogtreecommitdiff
path: root/test/files/neg/t6283.check
diff options
context:
space:
mode:
authorPaul Phillips <paulp@improving.org>2012-08-28 10:41:23 -0700
committerPaul Phillips <paulp@improving.org>2012-08-28 16:09:00 -0700
commit3cff2587d78eb6023ab1a584eba1bba8fd3660a0 (patch)
tree638deeaadc68eae24365858a0ae267a978422fc1 /test/files/neg/t6283.check
parent8ca87e36baaf2b834fe49610180a4e6c3d7b7fa0 (diff)
downloadscala-3cff2587d78eb6023ab1a584eba1bba8fd3660a0.tar.gz
scala-3cff2587d78eb6023ab1a584eba1bba8fd3660a0.tar.bz2
scala-3cff2587d78eb6023ab1a584eba1bba8fd3660a0.zip
Fix for SI-6283, no abstract value classes.
The needless abstraction penalty was in full flower in Namers. I managed to find somewhere else to issue this error, where I can still just write an error message without tracking down an enumeration in a separate file and inventing an intermediate name for the enum member.
Diffstat (limited to 'test/files/neg/t6283.check')
-rw-r--r--test/files/neg/t6283.check4
1 files changed, 4 insertions, 0 deletions
diff --git a/test/files/neg/t6283.check b/test/files/neg/t6283.check
new file mode 100644
index 0000000000..69e417ee93
--- /dev/null
+++ b/test/files/neg/t6283.check
@@ -0,0 +1,4 @@
+t6283.scala:1: error: `abstract' modifier cannot be used with value classes
+abstract class Funky(val i: Int) extends AnyVal
+ ^
+one error found