2015-01-14 05:36:42 +00:00
|
|
|
var Global = "global"
|
2013-12-04 15:43:50 +00:00
|
|
|
|
|
|
|
|
class Foo {
|
2015-09-01 15:16:04 +00:00
|
|
|
construct new() {}
|
|
|
|
|
|
2013-12-04 15:43:50 +00:00
|
|
|
method {
|
2015-09-15 14:46:09 +00:00
|
|
|
System.print(Global)
|
2013-12-04 15:43:50 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
static classMethod {
|
2015-09-15 14:46:09 +00:00
|
|
|
System.print(Global)
|
2013-12-04 15:43:50 +00:00
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
2015-07-10 16:18:22 +00:00
|
|
|
Foo.new().method // expect: global
|
2013-12-04 15:43:50 +00:00
|
|
|
Foo.classMethod // expect: global
|