This produces the same errors:
struct Foo {
int bar;
static Foo baz() {
return Foo();
}
const Foo one = Foo.baz();
}
void main() {}
Bye,
bearophile
This produces the same errors:
struct Foo {
int bar;
static Foo baz() {
return Foo();
}
const Foo one = Foo.baz();
}
void main() {}
Bye,
bearophile