www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 23577] New: Multiple template arguments are matched to a

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

          Issue ID: 23577
           Summary: Multiple template arguments are matched to a single
                    parameter
           Product: D
           Version: D2
          Hardware: All
                OS: All
            Status: NEW
          Severity: normal
          Priority: P1
         Component: dmd
          Assignee: nobody puremagic.com
          Reporter: maxsamukha gmail.com

This should pass:

struct S(A...)
{
}

static if (is(S!(int, bool) == S!A, A))
{
    pragma(msg, A);
    static assert(false);
}

Output:
int
onlineapp.d(9): Error: static assert:  `false` is false

--
Dec 24 2022