-
Notifications
You must be signed in to change notification settings - Fork 3.8k
[Reflection] Use actual type of element if constructor of custom attribute typed argument takes an array of objects. #10972
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
| Assert.AreEqual (typeof (int), arr [1].Value.GetType (), $"{methodName}#10"); | ||
| } | ||
|
|
||
| private void CheckObjectArrayParams () |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should be just normal [Test] method
| // https://github.com/mono/mono/issues/10951 | ||
| public void ObjectArrays () | ||
| { | ||
| CheckObjectArrayParam (nameof (MethodDecoratedWithAttribute3)); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It's fine to duplicate the test code
|
@monojenkins backport 2018-10 |
|
Seems that another issue should be resolved here. |
|
There is a lot of failing tests |
|
@monojenkins backport 2018-10 |
|
Thanks for review! |
This PR adds several unit tests. The fix is in mono/corert#27.
Fixes #10951