[Issue 21449] parser reject constructor call to const(SomeStructDecl)

d-bugmail at puremagic.com d-bugmail at puremagic.com
Thu Dec 3 09:11:07 UTC 2020


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

--- Comment #1 from Basile-z <b2.temp at gmx.com> ---
sorry, test case should be

---
struct Foo
{
    static opCall(T)(T t){}
}

void main()
{
    Foo(0);         //OK
    const(Foo)(0);  //NG
}   
---

--


More information about the Digitalmars-d-bugs mailing list