A reduced program: int foo(int n, lazy int x) { int inner() { n--; return foo(n, inner()); }; return n <= 0 ? n : inner(); } void main() { assert(foo(10, 1) == 0); } With DMD 2.055beta it compiles and runs correctly. But compiling it with -inline DMD gives: test.d(4): Error: delegate test.foo.inner.__dgliteral3 is a nested function and cannot be accessed from foo
Compiles fine with -inline on 2.059 Win32
(In reply to comment #1) > Compiles fine with -inline on 2.059 Win32 Thank you.