Please do not reply to this email- if you want to comment on the bug, go to the URL shown below and enter your comments there.
Changed by [EMAIL PROTECTED] http://bugzilla.ximian.com/show_bug.cgi?id=75095 --- shadow/75095 2005-05-30 02:46:01.000000000 -0400 +++ shadow/75095.tmp.3082 2005-05-30 02:46:01.000000000 -0400 @@ -0,0 +1,50 @@ +Bug#: 75095 +Product: Mono: Compilers +Version: 1.1 +OS: +OS Details: Ubuntu Linux 5.04 (Hoary) +Status: NEW +Resolution: +Severity: Unknown +Priority: Major +Component: C# +AssignedTo: [EMAIL PROTECTED] +ReportedBy: [EMAIL PROTECTED] +QAContact: [EMAIL PROTECTED] +TargetMilestone: --- +URL: +Cc: +Summary: GMCS fails to find static, generic method + +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 _______________________________________________ mono-bugs maillist - [email protected] http://lists.ximian.com/mailman/listinfo/mono-bugs
