http://d.puremagic.com/issues/show_bug.cgi?id=1373
Harry Vennik htven...@zonnet.nl changed:
What|Removed |Added
CC||htven...@zonnet.nl
--- Comment #4 from Harry Vennik htven...@zonnet.nl 2010-04-26 06:20:08 PDT
---
This issue bugged me with DMD 2.043 on Mac.
I noticed something peculiar which is demonstrated by this test case:
-
void foo(int i) { }
enum string FOO_TYPE = typeof(foo).stringof;
pragma(msg, Type of foo is: ~ FOO_TYPE);
-
Compiling that will print:
-
stringof_error.d(2): Error: expected 1 function arguments, not 0
Type of foo is: (void(int i))()
-
So actually, the .stringof is correctly evaluated, but still some unnecessary
check for function arguments makes the compiler generate an error.
--
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
--- You are receiving this mail because: ---