← Back to index
|
Original Bugzilla link
Bug 20031 – Tuple.toString does not work with mutable toString
Status
NEW
Severity
enhancement
Priority
P4
Component
phobos
Product
D
Version
D2
Platform
x86_64
OS
Linux
Creation time
2019-07-06T17:44:21Z
Last change time
2024-12-01T16:35:13Z
Assigned to
No Owner
Creator
timon.gehr
Moved to GitHub: phobos#10378 →
Comments
Comment #0
by timon.gehr — 2019-07-06T17:44:21Z
DMD64 D Compiler v2.086.0: import std.stdio, std.typecons; struct S{ string toString(){ return "not broken"; } } void main(){ writeln(S()); // "not broken" writeln(tuple(S(),S())); // "Tuple!(S, S)(const(S)(), const(S)())" } The second writeln should print: "Tuple!(S, S)(not broken, not broken)"
Comment #1
by robert.schadek — 2024-12-01T16:35:13Z
THIS ISSUE HAS BEEN MOVED TO GITHUB
https://github.com/dlang/phobos/issues/10378
DO NOT COMMENT HERE ANYMORE, NOBODY WILL SEE IT, THIS ISSUE HAS BEEN MOVED TO GITHUB