This produces the same errors:

struct Foo {
    int bar;
    static Foo baz() {
        return Foo();
    }
    const Foo one = Foo.baz();
}
void main() {}


Bye,
bearophile

Reply via email to