www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 22627] New: Wrong mixin template ctor causes "Error: unknown,

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

          Issue ID: 22627
           Summary: Wrong mixin template ctor causes "Error: unknown,
                    please file report on issues.dlang.org"
           Product: D
           Version: D2
          Hardware: x86_64
                OS: Linux
            Status: NEW
          Severity: minor
          Priority: P1
         Component: dmd
          Assignee: nobody puremagic.com
          Reporter: feklushkin.denis gmail.com

class Test
{
    mixin __ctorBody;
    immutable mixin __ctorBody;

    private mixin template __ctorBody()
    {
        this(){}
    }
}

void main()
{
    auto c = new shared Test();
}

--
Dec 23 2021