Bugzilla – Bug 318445
[GMCS] type inference wrt. delegate / anonymous method
Last modified: 2007-09-15 21:24:23 UTC
---- Reported by bmaurer@users.sf.net 2005-07-04 15:06:57 MST ---- GMCS does not compile class X { static void Main () { string [] s = { "a", "b", "a" }; System.Array.FindAll (s, delegate (string str) { return str == "a"; }); } } While csc v2 does. ---- Additional Comments From martin@ximian.com 2005-07-06 11:04:59 MST ---- Fixed in SVN; added gtest-184.cs and gcs0411-7.cs. ---- Additional Comments From martin@ximian.com 2005-07-06 11:05:56 MST ---- To make things clear: we do *not* perform type inference on the delegate / anonymous method argument, only on the other one and then check whether the anonymous method is compatible with that. That's what the gcs0411-7.cs error test case is for. Unknown operating system unknown. Setting to default OS "Other".