http://d.puremagic.com/issues/show_bug.cgi?id=8534
Summary: mixed-in struct definition not forward referenceable
Product: D
Version: D2
Platform: All
OS/Version: All
Status: NEW
Severity: normal
Priority: P2
Component: DMD
AssignedTo: [email protected]
ReportedBy: [email protected]
--- Comment #0 from Dmitry Olshansky <[email protected]> 2012-08-10
13:25:59 PDT ---
Test case:
SimpleCaseEntry[] simpleTable;
mixin(mixedCCEntry);
enum mixedCCEntry = q{
struct SimpleCaseEntry
{
}
};
dmd 2.060 outputs:
forward.d(2): Error: undefined identifier SimpleCaseEntry
Instead it should just work like this version(this is a workaround):
//case folding mapping
mixin(mixedCCEntry);
SimpleCaseEntry[] simpleTable;
enum mixedCCEntry = q{
struct SimpleCaseEntry
{
}
};
--
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------