Author: martin
Date: 2006-03-23 12:28:14 -0500 (Thu, 23 Mar 2006)
New Revision: 58369
Modified:
trunk/mcs/gmcs/convert.cs
Log:
Ooooops.
Modified: trunk/mcs/gmcs/convert.cs
===================================================================
--- trunk/mcs/gmcs/convert.cs 2006-03-23 17:26:35 UTC (rev 58368)
+++ trunk/mcs/gmcs/convert.cs 2006-03-23 17:28:14 UTC (rev 58369)
@@ -121,7 +121,7 @@
if (target_type.IsInterface)
return true;
- if (source_type.IsGenericParameter) {
+ if (target_type.IsGenericParameter) {
GenericConstraints gc =
TypeManager.GetTypeParameterConstraints (target_type);
if (gc == null)
return false;
@@ -145,7 +145,7 @@
if (target_type.IsInterface)
return new ClassCast (source, target_type);
- if (source_type.IsGenericParameter) {
+ if (target_type.IsGenericParameter) {
GenericConstraints gc =
TypeManager.GetTypeParameterConstraints (target_type);
if (gc == null)
return null;
_______________________________________________
Mono-patches maillist - [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches