Skip to content
This repository has been archived by the owner on Nov 1, 2020. It is now read-only.

[ILVerify] Add additional tests for delegate assignment/return #5027

Merged
merged 2 commits into from
Nov 27, 2017

Conversation

ArztSamuel
Copy link
Collaborator

This adds additional tests for the cases discussed in #4952.

Therefore this fixes #4952.

{
ldarg.1
ret
}
Copy link
Member

@jkotas jkotas Nov 27, 2017

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Also cover arguments and enums here?

  • Action<int8> to Action<int32>
  • Action<int8 enum> to Action<int8>

newobj instance void class [System.Runtime]System.Func`1<int32>::.ctor(object, native int)
pop
ret
}
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Same here.

@jkotas jkotas merged commit 9b3b190 into dotnet:master Nov 27, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

IsDelegateAssignable should use stricter "Compatible" check
2 participants