digitalmars.D.bugs - [Issue 18732] New: Can use template as type in a templatized class
- d-bugmail puremagic.com (28/28) Apr 05 2018 https://issues.dlang.org/show_bug.cgi?id=18732
https://issues.dlang.org/show_bug.cgi?id=18732 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 Assignee: nobody puremagic.com Reporter: b2.temp gmx.com --- 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 ? --
Apr 05 2018