[Issue 18824] [REG 2.080] Tuple's opBinaryRight takes precedence over appending a tuple to an array of tuples
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Sun May 6 17:28:55 UTC 2018
https://issues.dlang.org/show_bug.cgi?id=18824
Marco Leise <Marco.Leise at gmx.de> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |Marco.Leise at gmx.de
Component|dmd |phobos
--- Comment #1 from Marco Leise <Marco.Leise at gmx.de> ---
I think the component should be "Phobos". I met the same issue, but were coming
from a ternary operator:
enum foo() {
import std.typecons;
Tuple!(string, size_t)[] parts;
return true ? parts ~ tuple("abc", size_t.max) : parts;
}
Message:
test.d(4): Error: incompatible types for (tuple("abc",
18446744073709551615LU).opBinaryRight(parts)) : (parts): Tuple!(Tuple!(string,
ulong)[], string, ulong) and Tuple!(string, ulong)[]
The changelog entries are probably:
Phobos enhancements
1. Bugzilla 4591: Concat of std.typecons.Tuples
https://issues.dlang.org/show_bug.cgi?id=4591
[…]
5. Bugzilla 14637: Array operations should work on tuples
https://issues.dlang.org/show_bug.cgi?id=14637
--
More information about the Digitalmars-d-bugs
mailing list