www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 15199] New: Cannot Resolve Type When Calling stringof

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

          Issue ID: 15199
           Summary: Cannot Resolve Type When Calling stringof Property of
                    a Template
           Product: D
           Version: D2
          Hardware: All
                OS: All
            Status: NEW
          Severity: normal
          Priority: P1
         Component: dmd
          Assignee: nobody puremagic.com
          Reporter: monkeyworks12 hotmail.com

void main()
{
    struct Test
    {
        auto ref I(T)(auto ref T t) { return t; }
    }

    Test t;
        //Error: cannot resolve type for t.I(T)(auto ref T t)
    pragma(msg, t.I.stringof);
}

Related:

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

--
Oct 12 2015