summaryrefslogtreecommitdiff
path: root/test/files/run/static-annot-repl.scala
diff options
context:
space:
mode:
Diffstat (limited to 'test/files/run/static-annot-repl.scala')
-rw-r--r--test/files/run/static-annot-repl.scala22
1 files changed, 22 insertions, 0 deletions
diff --git a/test/files/run/static-annot-repl.scala b/test/files/run/static-annot-repl.scala
new file mode 100644
index 0000000000..1d2e9b2d7e
--- /dev/null
+++ b/test/files/run/static-annot-repl.scala
@@ -0,0 +1,22 @@
+
+
+
+import scala.tools.partest.ReplTest
+
+
+
+object Test extends ReplTest {
+ def code = """
+import annotation.static
+@static var x1 = 42
+@static val x2 = 43
+@static def x3 = 44
+x1
+x2
+x3
+class Test {
+ @static def x = 42
+}
+"""
+
+}