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: [email protected]
ReportedBy: [email protected]
--- Comment #0 from Andrej Mitrovic <[email protected]> 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: -------