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



--- Comment #3 from timon.g...@gmx.ch 2012-04-21 11:44:38 PDT ---
(In reply to comment #2)
> Actually, the first example gives on 2.059
> 
> PS E:\DigitalMars\dmd2\samples> dmd -c bug
> bug.d(2): Error: function bug.foo (int x) is not callable using argument types
> ()
> bug.d(2): Error: expected 1 function arguments, not 0

That is a typo. Fixed test case:

int foo(int x){return ++x=1;}
enum bar = foo(0);

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------

Reply via email to