https://issues.dlang.org/show_bug.cgi?id=21290
--- Comment #2 from [email protected] --- Workaround: ``` void foo(scope lazy void* p); struct S { this(int a) { auto b = &this; // temporary variable as workaround. foo(b); } } ``` --
d-bugmail--- via Digitalmars-d-bugs Tue, 20 Oct 2020 05:25:00 -0700
https://issues.dlang.org/show_bug.cgi?id=21290
--- Comment #2 from [email protected] --- Workaround: ``` void foo(scope lazy void* p); struct S { this(int a) { auto b = &this; // temporary variable as workaround. foo(b); } } ``` --