http://d.puremagic.com/issues/show_bug.cgi?id=11143
Summary: Error highlighting incorrect
Product: D
Version: D2
Platform: All
OS/Version: Windows
Status: NEW
Severity: minor
Priority: P2
Component: VisualD
AssignedTo: [email protected]
ReportedBy: [email protected]
--- Comment #0 from Manu <[email protected]> 2013-09-29 21:37:49 PDT ---
Paste into VS with Visual-D installed.
private template getComponent(char c, alias v)
{
static if(c == 'x') alias getComponent = v.x;
else static if(c == 'y') alias getComponent = v.y;
else static if(c == 'z') alias getComponent = v.z;
else static if(c == 'w') alias getComponent = v.w;
else static if(c == '0') float getComponent = 0;
else static if(c == '1') float getComponent = 1;
else static if(c == '2') float getComponent = 2;
else static assert(false, "Invalid swizzle component: '" ~ c ~ "'");
}
Note the first '=' underlines red, and then every 'else' that follows.
--
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------