2015-01-15 07:08:25 +00:00
|
|
|
class Foo {
|
2015-09-01 15:16:04 +00:00
|
|
|
construct new() {}
|
2015-07-10 16:18:22 +00:00
|
|
|
static bar { Bar.new() }
|
2015-01-15 07:08:25 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
class Bar {
|
2015-09-01 15:16:04 +00:00
|
|
|
construct new() {}
|
2015-07-10 16:18:22 +00:00
|
|
|
static foo { Foo.new() }
|
2015-01-15 07:08:25 +00:00
|
|
|
}
|
|
|
|
|
|
2015-09-15 14:46:09 +00:00
|
|
|
System.print(Foo.bar) // expect: instance of Bar
|
|
|
|
|
System.print(Bar.foo) // expect: instance of Foo
|