[Issue 17652] [DIP1000] opApply allow to escape reference to scope variable
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Sun Mar 4 07:46:40 UTC 2018
https://issues.dlang.org/show_bug.cgi?id=17652
Walter Bright <bugzilla at digitalmars.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
CC| |bugzilla at digitalmars.com
Resolution|--- |WORKSFORME
--- Comment #1 from Walter Bright <bugzilla at digitalmars.com> ---
It does check it now:
test.d(10): Error: function `test4.Foo.opApply` `(scope int delegate(scope
Object) @nogc @safe dg)` is not callable using argument types `(int
delegate(Object object) pure nothrow @nogc @safe)`
--
More information about the Digitalmars-d-bugs
mailing list