April 02, 2018 std/typecons.d(2010:36)[warn]: Left side of logical or is identical to right side. | ||||
---|---|---|---|---|
| ||||
I'm seeing this in the CI runs, but the line is actually not in error: https://github.com/dlang/phobos/blob/master/std/typecons.d#L2010 Where would be the problem? Andrei |
April 02, 2018 Re: std/typecons.d(2010:36)[warn]: Left side of logical or is identical to right side. | ||||
---|---|---|---|---|
| ||||
Posted in reply to Andrei Alexandrescu | On Monday, 2 April 2018 at 16:46:39 UTC, Andrei Alexandrescu wrote:
> I'm seeing this in the CI runs, but the line is actually not in error:
>
> https://github.com/dlang/phobos/blob/master/std/typecons.d#L2010
>
> Where would be the problem?
>
>
> Andrei
I guess it's parsed as a comma expression, which would put U as the expression result.
I think making an alias U2 = U;
and putting that in the rhs would be sufficient.
Given that it is dscanner who is complaining and not dmd.
In which cause you'd have to nest the static ifs.
|
Copyright © 1999-2021 by the D Language Foundation