Writelning a tuple ignores member's toString. · Issue #9811 · dlang/phobos (original) (raw)
Navigation Menu
- Explore
- Pricing
Provide feedback
Saved searches
Use saved searches to filter your results more quickly
Description
jonathanilevi reported this on 2020-11-17T02:55:21Z
Transfered from https://issues.dlang.org/show_bug.cgi?id=21401
Description
With
struct X {
string toString() {
return "hi";
}
}
writeln( tuple(X()) );
prints Tuple!(X)(const(X)())
not Tuple!(X)("hi")
.
Stringing a tuple should use the toString of its members.
Metadata
Metadata
Labels
Development
No branches or pull requests