This is issue 23112, but for when compiling with dmd -o-
---
struct Forward(alias F)
{
auto call()()
{
return F();
}
}
auto bar(int a) @nogc nothrow @safe
{
auto f()
{
return a;
}
return Forward!f();
}
extern(C) void main() @nogc
{
assert(bar(3).call() == 3);
}
Comment #1 by robert.schadek — 2024-12-13T19:24:07Z