Summary: UFCS writeln doesn't work with Tuples
           Product: D
           Version: D2
          Platform: x86
        OS/Version: Windows
            Status: NEW
          Keywords: rejects-valid
          Severity: normal
          Priority: P2
         Component: Phobos

--- Comment #0 from 2012-06-01 13:25:28 PDT ---
import std.stdio, std.typecons;
void main() {
    static struct Foo { int x; }
    auto f = Foo(20);
    f.writeln(); // OK
    Tuple!(int) t = tuple(10);
    t.writeln(); // error

dmd 2.060alpha gives

test.d(7): Error: not a property t.writeln
test.d(7): Error: function expected before (), not writeln(t) of type void

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

Reply via email to