[Issue 20868] DIP1000: scope delegate triggers error in unsafe code and it shouldn't
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Tue Jan 12 10:39:54 UTC 2021
https://issues.dlang.org/show_bug.cgi?id=20868
--- Comment #4 from RazvanN <razvan.nitu1305 at gmail.com> ---
Initially, it was `nonScoped(dg)` line that was reported as an error. However,
the function is not annotated with `@safe` so I concluded that the actual
problem is that the commented line (when uncommented) errors.
We need your clarification whether scope analysis should not apply in non- at safe
contexts.
--
More information about the Digitalmars-d-bugs
mailing list