[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 07:25:26 PDT 2008
http://d.puremagic.com/issues/show_bug.cgi?id=2202
------- Comment #5 from clugdbug at yahoo.com.au 2008-07-08 09:25 -------
(In reply to comment #1)
> 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.
It's supposed to take an expression. C.x is an expression.
>
> You can get what you want with typeof(C.init.x).
>
--
More information about the Digitalmars-d-bugs
mailing list