Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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