[Issue 9967] ParameterIdentifierTuple broken for setters

d-bugmail at puremagic.com d-bugmail at puremagic.com
Mon Apr 29 02:55:43 PDT 2013


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


Sönke Ludwig <sludwig at outerproduct.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |sludwig at outerproduct.org


--- Comment #2 from Sönke Ludwig <sludwig at outerproduct.org> 2013-04-29 02:55:41 PDT ---
__parameters seems to only with for actual function types and not for function
pointers. Replacing "alias Type = typeof(&Test.setter);" with "alias Type =
FunctionTypeOf!(Test.setter);" makes the bug example work. Similarly, replacing
the first static-if in ParameterIdentifierTuple makes it work, but I'm unsure
if this could break anything else:

line 832 traits.d:
--- static if (is(typeof!(func[0]) PT == __parameters))
+++ static if (is(FunctionTypeOf!(func[0]) PT == __parameters))

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