Skip to content

Commit

Permalink
Remove illink test workaround for removed declaring type (#89529)
Browse files Browse the repository at this point in the history
  • Loading branch information
sbomer committed Jul 27, 2023
1 parent b9c6d68 commit 89030ce
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ public static void Main ()
instance.ReturnWithRequirementsAlwaysThrows ();

UnsupportedReturnType ();
UnsupportedReturnTypeAndParameter (null);
}

static Type NoRequirements ()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ public static void Main ()
instance.PropertyPublicParameterlessConstructorWithExplicitAccessors = null;
instance.PropertyPublicConstructorsWithExplicitAccessors = null;
instance.PropertyNonPublicConstructorsWithExplicitAccessors = null;
_ = PropertyWithUnsupportedType;

TestAutomaticPropagation ();

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -974,16 +974,7 @@ bool LogMessageHasSameOriginMember (MessageContainer mc, ICustomAttributeProvide

var actualMember = origin?.Provider as IMemberDefinition;
var expectedOriginMember = expectedOriginProvider as IMemberDefinition;
if (actualMember?.FullName == expectedOriginMember.FullName)
return true;

// Compensate for cases where for some reason the OM doesn't preserve the declaring types
// on certain things after trimming.
if (actualMember != null && actualMember?.DeclaringType == null &&
actualMember?.Name == expectedOriginMember.Name)
return true;

return false;
return actualMember?.FullName == expectedOriginMember.FullName;
}
}

Expand Down

0 comments on commit 89030ce

Please sign in to comment.