diff options
Diffstat (limited to 'test/files/run/static-annot-repl.check')
-rw-r--r-- | test/files/run/static-annot-repl.check | 12 |
1 files changed, 3 insertions, 9 deletions
diff --git a/test/files/run/static-annot-repl.check b/test/files/run/static-annot-repl.check index 3a1532b823..d1029a9809 100644 --- a/test/files/run/static-annot-repl.check +++ b/test/files/run/static-annot-repl.check @@ -13,9 +13,7 @@ scala> @static val x2 = 43 x2: Int = 43 scala> @static def x3 = 44 -<console>:8: error: The @static annotation is not allowed on method definitions. - @static def x3 = 44 - ^ +x3: Int scala> x1 res0: Int = 42 @@ -24,15 +22,11 @@ scala> x2 res1: Int = 43 scala> x3 -<console>:9: error: not found: value x3 - x3 - ^ +res2: Int = 44 scala> class Test { @static def x = 42 } -<console>:9: error: The @static annotation is not allowed on method definitions. - @static def x = 42 - ^ +defined class Test scala>
\ No newline at end of file |