digitalmars.D.bugs - [Issue 18502] New: isExpression treated differently in
- d-bugmail puremagic.com (22/22) Feb 23 2018 https://issues.dlang.org/show_bug.cgi?id=18502
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: nobody puremagic.com Reporter: simen.kjaras 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...)); --
Feb 23 2018