[Issue 16577] New: deprecated message problem with overloaded functions and selective import

via Digitalmars-d-bugs digitalmars-d-bugs at puremagic.com
Sun Oct 2 13:04:09 PDT 2016


https://issues.dlang.org/show_bug.cgi?id=16577

          Issue ID: 16577
           Summary: deprecated message problem with overloaded functions
                    and selective import
           Product: D
           Version: D2
          Hardware: All
                OS: All
            Status: NEW
          Severity: minor
          Priority: P1
         Component: dmd
          Assignee: nobody at puremagic.com
          Reporter: b2.temp at gmx.com

Taking the case of std.json.toJSON:

void main()
{
    import std.json: toJSON, JSONValue;
    JSONValue v;
    auto str = toJSON(v);
} 

the deprecation message appears two times for the selective import but we only
use the right overload once.

--


More information about the Digitalmars-d-bugs mailing list