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

--- Comment #0 from Nicolas Sicard <> 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:
------- You are receiving this mail because: -------

Reply via email to