Bugzilla – Bug 318119
[GMCS] Failure to find static, generic method
Last modified: 2007-09-15 21:24:23 UTC
---- Reported by emrysk@gmail.com 2005-05-30 02:46:01 MST ---- Using GMCS, the following test case compiles but fails to run with Mono 1.1.7. using System; using System.IO; class TestCase { delegate void SomeDelegate(Stream s); static void Problem<T>(T o) where T: Stream { SomeDelegate d = delegate(Stream s) { Console.WriteLine(typeof(T) + " != " + s.GetType()); }; d(o); } static void Main() { Problem<FileStream>(File.OpenWrite("/tmp/apple")); } } I get this on stdout: ** ERROR **: file metadata.c: line 1790 (mono_metadata_parse_generic_param): assertion failed: (generic_context) aborting... Aborted ---- Additional Comments From miguel@ximian.com 2005-06-08 14:55:48 MST ---- This no longer happens with SVN Unknown bug field "cf_op_sys_details" encountered while moving bug <cf_op_sys_details>Ubuntu Linux 5.04 (Hoary)</cf_op_sys_details> Unknown operating system unknown. Setting to default OS "Other".