[Issue 11143] New: Error highlighting incorrect

d-bugmail at puremagic.com d-bugmail at puremagic.com
Sun Sep 29 21:37:51 PDT 2013


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: nobody at puremagic.com
        ReportedBy: turkeyman at gmail.com


--- Comment #0 from Manu <turkeyman at gmail.com> 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: -------


More information about the Digitalmars-d-bugs mailing list