[Issue 7874] [CTFE] internal error: unsupported assignment (x OP= y) = z

d-bugmail at puremagic.com d-bugmail at puremagic.com
Sat Apr 21 11:43:40 PDT 2012


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



--- Comment #3 from timon.gehr at 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: -------


More information about the Digitalmars-d-bugs mailing list