https://d.puremagic.com/issues/show_bug.cgi?id=12070

           Summary: Variant opCall not static
           Product: D
           Version: D2
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: regression
          Priority: P2
         Component: Phobos
        AssignedTo: [email protected]
        ReportedBy: [email protected]


--- Comment #0 from Jesse Phillips <[email protected]> 2014-02-03 
13:17:12 PST ---
In previous versions the following code compiled because there was no opCall:

import std.variant;

void main() {
    auto v = Variant();
}

Error: need 'this' for 'opCall' of type '@trusted VariantN!(20u)()'

The opCall isn't static so it requires a this. A work around seems to be to add
null:

Variant(null);

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

Reply via email to