Closed gewang closed 9 months ago
another example
public class Foo
{
BarFactory.make() @=> Bar bar;
}
class Bar
{
"i am bar" => string name;
}
class BarChild extends Bar
{
"i extend bar" => name;
}
class BarFactory
{
fun static BarChild make()
{
return new BarChild;
}
}
addressed in dbcec841135bd9f24c7357ccfb1f50c542443c4b and b6206584314c1b8237264eddb82c85858fcf0698, included in 1.5.2.0
encountering compiler error
in the following program:
possible problem: overzealous checking of decl order possible remedy: should handle global usage and func/classdef usage of
a
differently