Fix marking of default constructor constraint
authorJb Evain <jbevain@gmail.com>
Thu, 13 Jan 2011 13:30:48 +0000 (14:30 +0100)
committerJb Evain <jbevain@gmail.com>
Thu, 13 Jan 2011 13:30:48 +0000 (14:30 +0100)
mcs/tools/linker/Mono.Linker.Steps/MarkStep.cs

index f161c156ea997e45a261e19b63508bcc41634cd4..927038770e280466142ee2472bf595dae05ae0d0 100644 (file)
@@ -645,11 +645,11 @@ namespace Mono.Linker.Steps {
                {
                        var method = instance as GenericInstanceMethod;
                        if (method != null)
-                               return method.ElementMethod;
+                               return ResolveMethodDefinition (method.ElementMethod);
 
                        var type = instance as GenericInstanceType;
                        if (type != null)
-                               return type.ElementType;
+                               return ResolveTypeDefinition (type.ElementType);
 
                        return null;
                }