[Issue 21912] Invalid stack closure when calling delegate inside lambda
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Mon May 10 19:49:47 UTC 2021
https://issues.dlang.org/show_bug.cgi?id=21912
--- Comment #3 from moonlightsentinel at disroot.org ---
Even smaller:
=================================
DG foo(DG)(DG dg) {
return dg;
}
auto bla(int i) {
return foo(() => i);
}
void main() {
assert(bla(5)() == 5);
}
=================================
--
More information about the Digitalmars-d-bugs
mailing list