[Issue 22684] New: Templated constructor doesn't have class qualifier

d-bugmail at puremagic.com d-bugmail at puremagic.com
Mon Jan 17 10:56:33 UTC 2022


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

          Issue ID: 22684
           Summary: Templated constructor doesn't have class qualifier
           Product: D
           Version: D2
          Hardware: All
               URL: https://forum.dlang.org/post/sjsbvtlsfamltgshlwav@foru
                    m.dlang.org
                OS: All
            Status: NEW
          Severity: normal
          Priority: P1
         Component: dmd
          Assignee: nobody at puremagic.com
          Reporter: dfj1esp02 at sneakemail.com

shared class A
{
    this(T...)(T args){}
}
void f()
{
    auto a=new A(0); //works
    auto b=new shared A(0); //doesn't work
}

The constructor should get shared qualifier, but doesn't.

--


More information about the Digitalmars-d-bugs mailing list