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

--- Comment #3 from Dennis <[email protected]> ---
(In reply to João Lourenço from comment #2)
> So I just tested this and it compiled fine with DIP1000

I forgot to mention, you also need to give `Bar` at least one pointer member.

```
struct Bar
{
    int* x;
    @safe void dummy() {}
}

@safe
void main()
{
    scope bar = Bar();
    bar.dummy; // ok
}
```

onlineapp.d(11): Error: scope variable `bar` assigned to non-scope parameter
`this` calling onlineapp.Bar.dummy

--

Reply via email to