Fix marking of default constructor constraint
[mono.git] / 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;
                }