[Issue 1386] "string expected" when using allMembers-element in __traits(getMember, ...)

d-bugmail at puremagic.com d-bugmail at puremagic.com
Thu Sep 22 10:20:58 PDT 2011


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


Kenji Hara <k.hara.pg at gmail.com> changed:

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


--- Comment #10 from Kenji Hara <k.hara.pg at gmail.com> 2011-09-22 10:20:26 PDT ---
In 2.055, The problem in comment #9 does not occur by fixing bug 2234.
Therefore original sample code in comment #0 might work as expected.

But class has a member interface Monitor, so 

> typeid(typeof(__traits(getMember, a, member))))

will fail to compile.

If you change `class Asdf` into `struct Asdf`, you'll get following output:

asdf test.Temp!(uint).Temp
qwer test.Temp!(string).Temp
yxcv test.Temp!(real,real).Temp

-- 
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