1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
var Global = "global" class Foo { construct new() {} method { System.print(Global) } static classMethod { System.print(Global) } } Foo.new().method // expect: global Foo.classMethod // expect: global