summaryrefslogtreecommitdiff
path: root/test/files/neg/static-annot.scala
diff options
context:
space:
mode:
Diffstat (limited to 'test/files/neg/static-annot.scala')
-rw-r--r--test/files/neg/static-annot.scala6
1 files changed, 6 insertions, 0 deletions
diff --git a/test/files/neg/static-annot.scala b/test/files/neg/static-annot.scala
index c6c626d42b..c0b5ed30d8 100644
--- a/test/files/neg/static-annot.scala
+++ b/test/files/neg/static-annot.scala
@@ -45,3 +45,9 @@ class PrivateProtectedLazy {
println(PrivateProtectedLazy.baz)
println(PrivateProtectedLazy.bam)
}
+
+
+class StaticDef {
+ // this should not crash the compiler
+ @static def x = 42
+}