[Issue 7553] New: auto template param triggers mixin conflict
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Mon Feb 20 12:38:42 PST 2012
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: nobody at puremagic.com
ReportedBy: ellery-newcomer at utulsa.edu
--- Comment #0 from Ellery Newcomer <ellery-newcomer at utulsa.edu> 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: -------
More information about the Digitalmars-d-bugs
mailing list