www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 11143] New: Error highlighting incorrect

reply d-bugmail puremagic.com writes:
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 puremagic.com
        ReportedBy: turkeyman gmail.com



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: -------
Sep 29 2013
next sibling parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=11143




This seems to be fixed, but a new issue has taken it's place; if there is an
error in the opDispatch, or even in it's constraint, it will silently fail and
produce the error "No property: blah", as if there were no opDispatch at all.

Ie, it no longer gives compile errors within opDispatch, and compile errors are
useful :)

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Sep 29 2013
prev sibling next sibling parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=11143





 This seems to be fixed, but a new issue has taken it's place; if there is an
 error in the opDispatch, or even in it's constraint, it will silently fail and
 produce the error "No property: blah", as if there were no opDispatch at all.
 
 Ie, it no longer gives compile errors within opDispatch, and compile errors are
 useful :)
Oops! Bloody bugzilla! Posted on the wrong bug! -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: -------
Sep 29 2013
prev sibling next sibling parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=11143


Rainer Schuetze <r.sagitario gmx.de> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |r.sagitario gmx.de



PDT ---

 Paste into VS with Visual-D installed.
 [...]
 Note the first '=' underlines red, and then every 'else' that follows.
Works for me. Have you tried it with 0.3.37rc3? I have uploaded an rc4 just now, please try that: http://www.dsource.org/projects/visuald/browser/downloads/VisualD-v0.3.37rc4.exe -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: -------
Oct 03 2013
prev sibling parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=11143


Manu <turkeyman gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |WORKSFORME



Okay, updated to latest.
It's fine. Sorry!

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Oct 03 2013