--- Comment #6 from 2012-10-09 10:04:36 PDT ---
This code, that is derived more closely from my use case, gives an error, after
merging the patch:

alias bool delegate(in int) pure Dg;
Dg foo1(immutable Dg f) pure {
    return x => f(x); // OK
Dg foo2(const Dg f) pure {
    return x => f(x); // error
void main() {}

DMD patched gives:

temp.d(6): Error: cannot implicitly convert expression (__lambda4) of type bool
delegate(const(int) x) @system to bool delegate(const(int)) pure

Configure issuemail:
------- You are receiving this mail because: -------

Reply via email to