[Issue 2178] New: 3 errors without line number: typeof

d-bugmail at puremagic.com d-bugmail at puremagic.com
Thu Jun 26 01:46:19 PDT 2008


http://d.puremagic.com/issues/show_bug.cgi?id=2178

           Summary: 3 errors without line number: typeof
           Product: D
           Version: 1.031
          Platform: PC
        OS/Version: Windows
            Status: NEW
          Keywords: diagnostic
          Severity: normal
          Priority: P2
         Component: DMD
        AssignedTo: bugzilla at digitalmars.com
        ReportedBy: clugdbug at yahoo.com.au


/*
linenumberbugs.d(179): Error: undefined identifier F
Error: cannot resolve .property for typeof(F).x
linenumberbugs.d(179): Error: undefined identifier F
linenumberbugs.d(179): Error: cannot resolve .property for typeof(F).x
*/
alias typeof(F).x b;

----------------------------

/*
Error: x is not a type
linenumberbugs.d(192): Error: x is not a type
*/
class F { int x; }
alias typeof(F).x b;

--------------------
/*
linenumberbugs.d(196): Error: this is not in a struct or class scope
linenumberbugs.d(196): Error: 'this' is only allowed in non-static member
functi
ons, not linenumberbugs
Error: this for x needs to be type F not type int
*/

class F { int x; }
alias typeof(typeof(F).x) b;


-- 



More information about the Digitalmars-d-bugs mailing list