[Issue 9967] ParameterIdentifierTuple broken for setters

d-bugmail at puremagic.com d-bugmail at puremagic.com
Sat Apr 20 04:34:43 PDT 2013


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


Dicebot <m.strashun at gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
          Component|Phobos                      |DMD


--- Comment #1 from Dicebot <m.strashun at gmail.com> 2013-04-20 04:34:42 PDT ---
Looks like not actually a phobos issue, but dmd/__parameters one:

http://dpaste.1azy.net/a09afb96
---
interface Test
{
    @property void setter(int x);
}

alias Type = typeof(&(Test.setter));
pragma(msg, Type);

static if (is(Type PT == __parameters))
{
    pragma(msg, PT);
}
else
    pragma(msg, "Error!");

void main() {}
---
Compilation output:
void function(int x) @property
Error!
---

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