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 } """ }