[Issue 9672] New: mixin within cyclic import causes undefined properties
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Sat Mar 9 05:46:51 PST 2013
http://d.puremagic.com/issues/show_bug.cgi?id=9672
Summary: mixin within cyclic import causes undefined properties
Product: D
Version: unspecified
Platform: All
OS/Version: All
Status: NEW
Severity: regression
Priority: P2
Component: DMD
AssignedTo: nobody at puremagic.com
ReportedBy: r.sagitario at gmx.de
--- Comment #0 from Rainer Schuetze <r.sagitario at gmx.de> 2013-03-09 05:46:49 PST ---
This code compiles with dmd 2.062, but not with git-head:
////////////////////////////////////////////////////
module interpret;
import node;
class Type
{
mixin ForwardCtor!();
}
//BasicType only created for standard types associated with tokens
class BasicType : Type
{
static Type createType()
{
return null;
}
}
class ValueT(T)
{
Type getType()
{
return BasicType.createType();
}
}
class CharValue : ValueT!char
{
string toStr()
{
return null;
}
}
////////////////////////////////////////////////////
module node;
import interpret;
mixin template ForwardCtor()
{
}
////////////////////////////////////////////////////
"dmd -c interpret.d" works.
"dmd -c node.d" causes
interpret.d(23): Error: no property 'createType' for type 'interpret.BasicType'
--
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