[Issue 12239] New: "undefined identifier" with named import and circular reference
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Mon Feb 24 04:47:35 PST 2014
https://d.puremagic.com/issues/show_bug.cgi?id=12239
Summary: "undefined identifier" with named import and circular
reference
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: thecybershadow at gmail.com
--- Comment #0 from Vladimir Panteleev <thecybershadow at gmail.com> 2014-02-24 14:47:32 EET ---
////// a.d //////
import b : I = J;
class A
{
I i;
}
////// b.d //////
import a;
class B : A { }
class J { }
/////////////////
Compiler complains:
a.d(5,4): Error: undefined identifier J
Things that unbreak it:
- Adding "import b;" in a
- Moving "I i;" outside class A
- Making B not depend on A
--
Configure issuemail: https://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
More information about the Digitalmars-d-bugs
mailing list