[Issue 13442] __gshared default value allowed in @safe function signature

via Digitalmars-d-bugs digitalmars-d-bugs at puremagic.com
Fri Jun 24 17:42:05 PDT 2016


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

--- Comment #2 from Walter Bright <bugzilla at digitalmars.com> ---
Unfortunately, fixing this is going to be a bit difficult. Safety checks are
done during the semantic pass, not an add-on. The semantic pass for default
args are run in the context of the function declaration, not the function call
site, meaning the safety checks are not included in the semantic analysis of
the function call site.

--


More information about the Digitalmars-d-bugs mailing list