[Issue 2774] Functions-as-properties makes it impossible to get the .mangleof a function
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Wed May 27 13:23:58 PDT 2009
http://d.puremagic.com/issues/show_bug.cgi?id=2774
--- Comment #4 from Shin Fujishiro <rsinfu at gmail.com> 2009-05-27 13:23:56 PDT ---
(From update of attachment 381)
Please insert the following "case TOKtype" in addition to the patch. It handles
Type.mangleof.
>+ Dsymbol *ds = NULL;
>+ switch (e1->op)
>+ {
+ case TOKtype:
+ e = e1->type->dotExp(sc, e1, ident);
+ e = e->semantic(sc);
+ return e;
+
>+ case TOKimport:
----
Forgot to explain what the patch does. The patch modifies DotIdExp::semantic so
that .mangleof is evaluated before resolveProperty (which transforms the
property syntax foobar.func into a function call).
--
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