[Issue 22270] [DIP1000] class does infer scope in methods when assigned to a scope variable
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Fri Sep 3 14:28:41 UTC 2021
https://issues.dlang.org/show_bug.cgi?id=22270
--- Comment #2 from João Lourenço <jlourenco5691 at gmail.com> ---
So I just tested this and it compiled fine with DIP1000
---
struct Bar
{
@safe void dummy() {}
}
@safe
void main()
{
scope bar = Bar();
bar.dummy; // ok
}
---
--
More information about the Digitalmars-d-bugs
mailing list