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