[Issue 2202] Error getting type of non-static member of a class

d-bugmail at puremagic.com d-bugmail at puremagic.com
Tue Jul 8 01:51:40 PDT 2008


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





------- Comment #1 from wbaxter at gmail.com  2008-07-08 03:51 -------
Not sure if that's really a bug or not.  I lean towards "no" since typeof is
supposed to take a variable, and C.x is not a variable.  

You can get what you want with typeof(C.init.x).


-- 



More information about the Digitalmars-d-bugs mailing list