Time to start compiling with -dip25
Jusl
jusl at gmail.usa
Tue Jan 1 02:58:23 UTC 2019
On Tuesday, 1 January 2019 at 00:48:47 UTC, H. S. Teoh wrote:
> On Mon, Dec 31, 2018 at 04:36:29PM -0800, H. S. Teoh via
> Digitalmars-d wrote: [...]
>> auto func1(R)(R range)
>> {
>> ...
>> range.func2();
>> ...
>> }
>>
>> auto func2(R)(R range)
>> {
>> ...
>> range.func1();
>> ...
>> }
>>
>> Unsurprisingly, the compiler was unable to infer @safe for
>> these functions, since their mutual dependency understandably
>> makes it hard for automatic inference to deduce @safe
>> correctly.
> [...]
>
> Apparently there's already an issue for this:
>
> https://issues.dlang.org/show_bug.cgi?id=16528
>
> It's been 3 years since this was filed. :-(
>
>
> T
Classic D.
-> File a bug report!
-> One has already existed for years.
Ducking classic.
More information about the Digitalmars-d
mailing list