[Issue 4505] Type literal of pure function pointer inside function signature
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Sun Aug 29 19:12:01 PDT 2010
http://d.puremagic.com/issues/show_bug.cgi?id=4505
Andrej Mitrovic <andrej.mitrovich at gmail.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |andrej.mitrovich at gmail.com
--- Comment #1 from Andrej Mitrovic <andrej.mitrovich at gmail.com> 2010-08-29 19:11:49 PDT ---
I think this is a problem of the keyword pure trying to act as a type specifier
for the return type ( See also my bug 4734 for a similar issue).
If you put pure after the function definition but before the identifier, like
so:
pure int foo4(int function(int) pure func, int x) {
then your example compiles and all asserts pass.
--
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