Bug 4190 – unable reduce aseert partial template in "is"

Status
RESOLVED
Resolution
WORKSFORME
Severity
normal
Priority
P2
Component
dmd
Product
D
Version
D2
Platform
Other
OS
All
Creation time
2010-05-14T22:01:00Z
Last change time
2015-06-09T05:15:11Z
Assigned to
nobody
Creator
galaxylang

Comments

Comment #0 by galaxylang — 2010-05-14T22:01:23Z
class if_else(I,E) { } template reduce(T) { //here,can't be complie becase if_else not instanced //also there is no way to alias the I and E static if(is(T:if_else)) { }else { } } void main() { }
Comment #1 by lt.infiltrator — 2014-03-18T22:54:38Z
Provided code compiles with 2.065.