Comment #0 by bruno.do.medeiros+deebugz — 2006-10-18T09:46:03Z
Crash on foreach of mixed-in aggregate (only if the mixin instance is named):
---- ----
template opHackedApply() {
struct Iter {
}
}
class Foo {
mixin opHackedApply!() oldIterMix;
}
void main() {
Foo f = new Foo;
foreach (i; f.oldIterMix.Iter) { }
}
Comment #1 by braddr — 2006-10-18T12:15:56Z
*** Bug 442 has been marked as a duplicate of this bug. ***
Comment #2 by fvbommel — 2006-10-19T16:45:14Z
Bruno Medeiros wrote:
> [email protected] wrote:
>> http://d.puremagic.com/issues/show_bug.cgi?id=441
>>
>>
>>
>>
>>
>> ------- Comment #1 from [email protected] 2006-10-18 12:15 -------
>> *** Bug 442 has been marked as a duplicate of this bug. ***
>>
>>
>
> Now that's a duplicate... literally :P
> I wonder how it happened, tough.
>
Most likely an accidental double "submit" click or something like that.
Comment #3 by bugzilla — 2006-11-21T23:08:37Z
Works in DMD 0.174, producing the (correct) error message:
test.d(12): Error: cannot infer type for i