[Issue 8934] Lambda violates DMD assertion
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Mon Dec 17 01:24:10 PST 2012
http://d.puremagic.com/issues/show_bug.cgi?id=8934
Dmitry S <ds.dlang at gmail.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |ds.dlang at gmail.com
--- Comment #3 from Dmitry S <ds.dlang at gmail.com> 2012-12-17 01:24:08 PST ---
I tried to reproduce, but the following code compiles and works correctly with
dmd built from the current github head (on MacOSX):
import std.stdio;
import std.algorithm;
string modules[] = [ "foo", "bar", "zoo" ];
int main(string[] args) {
foreach (string line; ["hello", "bar", "world"]) {
if (any!(a => a == line)(modules)) {
writeln(line, " found");
} else {
writeln(line, " not found");
}
}
return 0;
}
--
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