[Issue 20576] TemplateTypeParameter and TemplateValueParameter default values are not checked

d-bugmail at puremagic.com d-bugmail at puremagic.com
Thu Feb 20 15:03:54 UTC 2020


https://issues.dlang.org/show_bug.cgi?id=20576

--- Comment #4 from Basile-z <b2.temp at gmx.com> ---
other example:

struct Foo {
    Foo opBinary(string op="-")(Foo f) {
        return Foo();
    }
}
void main() {
    auto Foo = Foo() + Foo();
}

--


More information about the Digitalmars-d-bugs mailing list