www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 23258] New: ICE on SumType of two arrays of classes

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

          Issue ID: 23258
           Summary: ICE on SumType of two arrays of classes
           Product: D
           Version: D2
          Hardware: All
                OS: All
            Status: NEW
          Severity: normal
          Priority: P1
         Component: dmd
          Assignee: nobody puremagic.com
          Reporter: boris2.9 gmail.com

test:
---
struct SumType(Types...)
{
    this(Types[0])
    {
    }
    this(Types[1])
    {
    }
}

alias A2 = SumType!(C1[], C2[]);

class C1
{
}

class C2
{
}
---

Patch ready.

--
Jul 18 2022