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



--- Comment #1 from timon.g...@gmx.ch 2011-11-13 04:54:18 PST ---
note that

int foo(int delegate() x) pure{
    return x()+x();
}

void main(){
    auto a=foo({return writeln("impure"),1;});
}

fails with

Error: pure function 'foo' cannot call impure delegate 'x'

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

Reply via email to