D issues are now tracked on GitHub. This Bugzilla instance remains as a read-only archive.
Issue 4190 - unable reduce aseert partial template in "is"
Summary: unable reduce aseert partial template in "is"
Status: RESOLVED WORKSFORME
Alias: None
Product: D
Classification: Unclassified
Component: dmd (show other issues)
Version: D2
Hardware: Other All
: P2 normal
Assignee: No Owner
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-05-14 22:01 UTC by galaxylang
Modified: 2015-06-09 05:15 UTC (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this issue.
Description galaxylang 2010-05-14 22:01:23 UTC
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 Infiltrator 2014-03-18 22:54:38 UTC
Provided code compiles with 2.065.