http://d.puremagic.com/issues/show_bug.cgi?id=5501

           Summary: Variant wrongly assumes that an object's length
                    property returns a size_t
           Product: D
           Version: D2
          Platform: Other
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Phobos
        AssignedTo: nob...@puremagic.com
        ReportedBy: dran...@free.fr


--- Comment #0 from Nicolas Sicard <dran...@free.fr> 2011-01-29 00:59:57 PST ---
The following code doesn't compile. I hit the problem when using
std.datetime.Interval (which length returns a Duration).

import std.variant;

struct Foo {
    double length() {
        return double.init;
    }
}

unittest {
    Foo foo;
    Variant v = foo;
}

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------

Reply via email to