[Issue 8625] foreach doesn't do implicit conversions with opApply
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Sat Nov 23 20:31:14 PST 2013
https://d.puremagic.com/issues/show_bug.cgi?id=8625
yebblies <yebblies at gmail.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Keywords| |rejects-valid
CC| |yebblies at gmail.com
Summary|foreach doesn't do implicit |foreach doesn't do implicit
|conversions on associative |conversions with opApply
|arrays and opApply |
--- Comment #1 from yebblies <yebblies at gmail.com> 2013-11-24 15:31:10 EST ---
This case still doesn't work
void main() {
static struct OpApply {
int opApply(int delegate(int)) {return 0;}
}
foreach(long x; OpApply()) {} // fails
// test.d(10): Error: cannot uniquely infer foreach argument types
}
The first was issue 9212
--
Configure issuemail: https://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
More information about the Digitalmars-d-bugs
mailing list