September 06, 2007 [Issue 1479] New: mixin error across two module | ||||
---|---|---|---|---|
| ||||
http://d.puremagic.com/issues/show_bug.cgi?id=1479 Summary: mixin error across two module Product: D Version: 1.020 Platform: PC OS/Version: Linux Status: NEW Severity: major Priority: P2 Component: DMD AssignedTo: bugzilla@digitalmars.com ReportedBy: redsea@163.com the following code would report: test.d(8): Error: identifier 'tpl' is not defined. but if combine the codes into one module, it could be successful compiled. this bug force me combine many code into one module. 1.018, 1.020, 1.021 all act same. file test.d ------------------- module test; import test1; template tpl() { alias S2!(tpl) tt; } void main() { S2!(tpl) v; } ------------------- file test1.d ------------------- module test1; struct S1(alias t1) { mixin t1!(); } struct S2(alias t) { alias S1!(t) mytype; int i; } -- |
September 06, 2007 [Issue 1479] mixin error across two module | ||||
---|---|---|---|---|
| ||||
Posted in reply to d-bugmail | http://d.puremagic.com/issues/show_bug.cgi?id=1479 matti.niemenmaa+dbugzilla@iki.fi changed: What |Removed |Added ---------------------------------------------------------------------------- Version|1.020 |1.018 ------- Comment #1 from matti.niemenmaa+dbugzilla@iki.fi 2007-09-06 09:30 ------- Please set the oldest applicable version: http://www.digitalmars.com/d/archives/digitalmars/D/bugs/bugzilla_usage_tips_10071.html -- |
Copyright © 1999-2021 by the D Language Foundation