[Issue 17502] [REG2.064] Out contract in class method causes dmd segfault.

via Digitalmars-d-bugs digitalmars-d-bugs at puremagic.com
Thu Jun 15 12:21:38 PDT 2017


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

--- Comment #4 from github-bugzilla at puremagic.com ---
Commits pushed to master at https://github.com/dlang/dmd

https://github.com/dlang/dmd/commit/99b7e49ad99ac2cb3e64e053a45e4663271ffae7
Fix issue 17502: Allow no parameters in out contract for auto methods

Even in case of non-void methods, their out contract should
be able to accept no arguments. For the methods with auto return type,
there was oversight where one argument to `out` was always assumed.

https://github.com/dlang/dmd/commit/620acd53b63bfede6179a1b6a5c7d1b01a14ed0e
Merge pull request #6906 from Burgos/out_param

Fix issue 17502: Allow no parameters in out contract for auto methods

--


More information about the Digitalmars-d-bugs mailing list