[Mono-bugs] [Bug 77397][Nor] Changed - Compiler asserts in
ves_icall_MonoType_get_DeclaringMethod on generic method compilation
bugzilla-daemon at bugzilla.ximian.com
bugzilla-daemon at bugzilla.ximian.com
Sat Jan 28 17:08:22 EST 2006
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 michiel at guerrilla-games.com.
http://bugzilla.ximian.com/show_bug.cgi?id=77397
--- shadow/77397 2006-01-28 16:29:30.000000000 -0500
+++ shadow/77397.tmp.27612 2006-01-28 17:08:21.000000000 -0500
@@ -53,6 +53,32 @@
I am running Mono 1.1.13.2 and it compiles just fine, it produces:
test.cs(7,27): error CS0115: `b.func(ref T)': no suitable method found
to override
+
+------- Additional Comments From michiel at guerrilla-games.com 2006-01-28 17:08 -------
+I'm sorry to waste your time, but I made a typo (new to Mac OS and Mono).
+
+In my example, the first function is named "fun" instead of "func". The proper example
+should be:
+
+abstract public class a
+ {
+ public abstract void func<T>(ref T arg);
+ }
+ public class b : a
+ {
+ public override void func<T>(ref T arg)
+ {
+ }
+ }
+
+
+I am using Mono 1.1.13 (2.0) on Mac OS X Tiger 10.4.4. I installed using the latest installer
+from mono-project.com. I am using X-Develop by OmniCore as an IDE.
+
+The problem starts when I try to implement a generic method which references a type
+directly. The example compiles if I replace "T" with "List<T>"
+
+Hope this helps.
More information about the mono-bugs
mailing list