May 28, 2020 [Issue 20875] New: [REG2.087.1] Enum template specialization ignored | ||||
|---|---|---|---|---|
| ||||
https://issues.dlang.org/show_bug.cgi?id=20875 Issue ID: 20875 Summary: [REG2.087.1] Enum template specialization ignored Product: D Version: D2 Hardware: All OS: All Status: NEW Severity: normal Priority: P1 Component: dmd Assignee: nobody@puremagic.com Reporter: simen.kjaras@gmail.com enum Foo(alias T : None!U, U...) = true; enum Bar(alias T : None!U, U...) = false; static assert( Foo!(int)); static assert(!Bar!(int)); The above code should of course not compile - None is nowhere defined, so nothing can match, yet it does. -- | ||||
Copyright © 1999-2021 by the D Language Foundation
Permalink
Reply