Issue ID: 18732
           Summary: Can use template as type in a templatized class
           Product: D
           Version: D2
          Hardware: All
                OS: All
            Status: NEW
          Severity: normal
          Priority: P1
         Component: dmd

class Foo(bool b)
    // can use Foo without template param
    static assert(__traits(compiles, new Foo));  // 1
    // because
    static assert(is(Foo == Foo!false));

void main()
    Foo!false foo;

The Q is: is line before comment 1 accepted on purpose ?


Reply via email to