summaryrefslogtreecommitdiff
path: root/test/files/run/static-annot-repl.scala
blob: 1d2e9b2d7e152d1d37414113bc89acd5a13688e3 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
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
}
"""

}