https://issues.dlang.org/show_bug.cgi?id=19882
Issue ID: 19882
Summary: Expected 'undefined identifier' error when type
comparing
Product: D
Version: D2
Hardware: All
OS: All
Status: NEW
Severity: minor
Priority: P1
Component: dmd
Assignee: [email protected]
Reporter: [email protected]
void main()
{
static if( is(undefined_id == int) ) pragma(msg, "OK");
//compiles
//oops
//static if( is(int == undefined_id ) ) pragma(msg, "OK");
//Error: undefined identifier undefined_type
//as expected
}
--
