summaryrefslogtreecommitdiff
path: root/test/files/neg/static-annot.check
diff options
context:
space:
mode:
Diffstat (limited to 'test/files/neg/static-annot.check')
-rw-r--r--test/files/neg/static-annot.check10
1 files changed, 10 insertions, 0 deletions
diff --git a/test/files/neg/static-annot.check b/test/files/neg/static-annot.check
new file mode 100644
index 0000000000..80aebcd406
--- /dev/null
+++ b/test/files/neg/static-annot.check
@@ -0,0 +1,10 @@
+static-annot.scala:8: error: Only members of top-level objects and their nested objects can be annotated with @static.
+ @static val bar = 1
+ ^
+static-annot.scala:27: error: @static annotated field bar has the same name as a member of class Conflicting
+ @static val bar = 1
+ ^
+static-annot.scala:14: error: Only members of top-level objects and their nested objects can be annotated with @static.
+ @static val blah = 2
+ ^
+three errors found \ No newline at end of file