diff options
Diffstat (limited to 'test/files/neg/static-annot.scala')
-rw-r--r-- | test/files/neg/static-annot.scala | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/test/files/neg/static-annot.scala b/test/files/neg/static-annot.scala new file mode 100644 index 0000000000..b8c4651076 --- /dev/null +++ b/test/files/neg/static-annot.scala @@ -0,0 +1,33 @@ + + +import annotation.static + + + +class StaticInClass { + @static val bar = 1 +} + + +class NestedObjectInClass { + object Nested { + @static val blah = 2 + } +} + + +object NestedObjectInObject { + object Nested { + @static val succeed = 3 + } +} + + +object Conflicting { + @static val bar = 1 +} + + +class Conflicting { + val bar = 45 +} |