Summary: Bad writeln of a nested struct
           Product: D
           Version: 2.040
          Platform: x86
        OS/Version: Windows
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Phobos

--- Comment #0 from 2010-03-07 17:02:05 PST ---
This small D2 program prints just:
Instead of something better like:
Pair("hello", Int(5))

import std.stdio: writeln;

struct Int {
    int x;
    const bool opEquals(ref const Int other) {
        return this.x == other.x;

struct Pair {
    string s;
    Int i;

void main() {
    writeln(Pair("hello", Int(5)));

Configure issuemail:
------- You are receiving this mail because: -------

Reply via email to