[Mono-bugs] [Bug 75095][Maj] New - GMCS fails to find static,
generic method
bugzilla-daemon at bugzilla.ximian.com
bugzilla-daemon at bugzilla.ximian.com
Mon May 30 02:46:01 EDT 2005
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 emrysk at gmail.com.
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: mono-bugs at ximian.com
+ReportedBy: emrysk at gmail.com
+QAContact: mono-bugs at ximian.com
+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
More information about the mono-bugs
mailing list