[Issue 13737] New: Scope import in template do not work with function parameters.

via Digitalmars-d-bugs digitalmars-d-bugs at puremagic.com
Sat Nov 15 11:55:32 PST 2014


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

          Issue ID: 13737
           Summary: Scope import in template do not work with function
                    parameters.
           Product: D
           Version: D2
          Hardware: All
                OS: All
            Status: NEW
          Severity: major
          Priority: P1
         Component: DMD
          Assignee: nobody at puremagic.com
          Reporter: ilyayaroshenko at gmail.com

=======
module M;
struct B {}
=======
template A()
{
    import M;
    void A(B b){}
}    

void foo() 
{
    import M : B;
    B b;
    A(b);
}
=======
test2155.d(4): Error: undefined identifier B

--


More information about the Digitalmars-d-bugs mailing list