September 24, 2013 [Issue 11119] New: Alias declaration cannot see forward-referenced symbol in mixed-in template | ||||
---|---|---|---|---|
| ||||
http://d.puremagic.com/issues/show_bug.cgi?id=11119 Summary: Alias declaration cannot see forward-referenced symbol in mixed-in template Product: D Version: D2 Platform: All OS/Version: All Status: NEW Keywords: rejects-valid Severity: normal Priority: P2 Component: DMD AssignedTo: nobody@puremagic.com ReportedBy: andrej.mitrovich@gmail.com --- Comment #0 from Andrej Mitrovic <andrej.mitrovich@gmail.com> 2013-09-24 15:45:22 PDT --- ----- module test; struct K { mixin templ; alias a = foo; // ok } struct F { alias a = foo; // fail mixin templ; } mixin template templ() { void foo() { } } void main() { } ----- $ dmd test.d test.d(11): Error: undefined identifier foo It does not appear to be a regression, but it might be a duplicate of some other bug (?). -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- |
Copyright © 1999-2021 by the D Language Foundation