[Issue 21290] [REG2.073] Incorrect escape deprecation on scope lazy pointer parameter

d-bugmail at puremagic.com d-bugmail at puremagic.com
Tue Oct 20 12:24:16 UTC 2020


https://issues.dlang.org/show_bug.cgi?id=21290

--- Comment #2 from johanengelen at weka.io ---
Workaround:
```
void foo(scope lazy void* p);

struct S {
    this(int a) {
        auto b = &this; // temporary variable as workaround.
        foo(b);
    }
}
```

--


More information about the Digitalmars-d-bugs mailing list