November 15, 2014 [Issue 13737] New: Scope import in template do not work with function parameters. | ||||
---|---|---|---|---|
| ||||
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@puremagic.com Reporter: ilyayaroshenko@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 -- |
Copyright © 1999-2021 by the D Language Foundation