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

          Issue ID: 18502
           Summary: isExpression treated differently in
                    TemplateTypeParameterSpecialization than elsewhere
           Product: D
           Version: D2
          Hardware: x86
                OS: Windows
            Status: NEW
          Severity: enhancement
          Priority: P1
         Component: dmd
          Assignee: nob...@puremagic.com
          Reporter: simen.kja...@gmail.com

enum Foo(alias T : Bar!U, U...) = true;
template Bar(T...) { alias b = T; }

// These compile as expected:
static assert(Foo!(Bar!int));
static assert(!__traits(compiles, Foo!(Bar!int)));

// While this asserts:
static assert(is(Bar!int : Bar!T, T...));

--

Reply via email to