Test code:
```
void foo(scope lazy void* p);
struct S {
this(int a) {
foo(&this); // line 5
}
}
```
When compiled with dlang >= 2.092, the following deprecation message is shown:
<source>(5): Deprecation: escaping reference to outer local variable `this`
The deprecation message is incorrect because of `scope` in the function parameter signature.
The code compiles without deprecation message when `lazy` is removed.
(This is probably because DIP25 violations now show deprecation messages, i.e. DIP25 implementation bugs now start to surface. Deprecation message bugs are as bad as error bugs, because -de is used in settings where one does not want to disable it.)
Comment #1 by moonlightsentinel — 2020-10-04T17:35:53Z