[Mono-bugs] [Bug 76097][Maj] Changed - [GMCS] Type checker ignores generic type parameter constraint

bugzilla-daemon at bugzilla.ximian.com bugzilla-daemon at bugzilla.ximian.com
Wed Oct 19 14:18:51 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 martin at ximian.com.

http://bugzilla.ximian.com/show_bug.cgi?id=76097

--- shadow/76097	2005-10-19 14:17:24.000000000 -0400
+++ shadow/76097.tmp.1536	2005-10-19 14:18:51.000000000 -0400
@@ -130,6 +130,11 @@
 
 I'll have a look at this.
 
 ------- Additional Comments From martin at ximian.com  2005-10-19 14:17 -------
 Ooops, I was confused - I tought it was trying to get the constraints
 from the type parameter.
+
+------- Additional Comments From martin at ximian.com  2005-10-19 14:18 -------
+So the correct fix is in TypeManager.GetNumberOfTypeArguments():
+  if (t.IsGenericParameter)
+    return 0;


More information about the mono-bugs mailing list