http://d.puremagic.com/issues/show_bug.cgi?id=7553
Summary: auto template param triggers mixin conflict
Product: D
Version: D2
Platform: x86_64
OS/Version: Linux
Status: NEW
Severity: normal
Priority: P2
Component: DMD
AssignedTo: [email protected]
ReportedBy: [email protected]
--- Comment #0 from Ellery Newcomer <[email protected]> 2012-02-20
12:38:40 PST ---
dmd 2.058
the code:
template Foo(){
struct Range{
}
}
template Biz(){
struct Range{
}
}
class Bar{
mixin Foo!() index0;
mixin Biz!() index1;
auto to_range(Range)(Range r)
{
}
}
void main(){
auto r2 =Bar.to_range(1);
}
the fireworks:
test.d(13): Error: test.Bar.Foo!().Range at test.d(2) conflicts with
test.Bar.Biz!().Range at test.d(6)
--
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------