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

via Digitalmars-d-bugs digitalmars-d-bugs at puremagic.com
Tue Jun 7 01:44:15 PDT 2016


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

Walter Bright <bugzilla at digitalmars.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |bugzilla at digitalmars.com

--- Comment #1 from Walter Bright <bugzilla at digitalmars.com> ---
The unsafe-ness of a default argument is in the caller side, not the function
side. The error should be caught in main(), not in the compilation of f().

Still a bug, though.

--


More information about the Digitalmars-d-bugs mailing list