[Issue 11119] New: Alias declaration cannot see forward-referenced symbol in mixed-in template
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Tue Sep 24 15:45:23 PDT 2013
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 at puremagic.com
ReportedBy: andrej.mitrovich at gmail.com
--- Comment #0 from Andrej Mitrovic <andrej.mitrovich at 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: -------
More information about the Digitalmars-d-bugs
mailing list