-
Notifications
You must be signed in to change notification settings - Fork 554
[registrar] Fix resolving linked away generic types. Fixes #3523. #3539
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
tests/mtouch/RegistrarTest.cs
Outdated
| { | ||
| // Normally compilable test code can go into monotouch-test, but in this case it depends on the | ||
| // generic type (NSSet) being linked away, and since monotouch-test uses NSSet, it's not linked | ||
| // away, and we don't hit the required condition causing the bug. |
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.
maybe link sdk or link all would have fit the bill ?
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.
Good idea, I've put it in link all instead.
|
Build failure |
It's much faster, since we're already building link all everywhere.
| public void LinkedAwayGenericTypeAsOptionalMemberInProtocol () | ||
| { | ||
| // https://github.com/xamarin/xamarin-macios/issues/3523 | ||
| // This test will fail at build time if it regresses (usually these types of build tests go into monotouch-test, but monotouch-test uses NSSet<T> elsewhere, which this test requires to be linked away). |
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.
👍
|
Build failure |
|
Build failure |
|
Build failure |
|
Test failure is unrelated:
|
… (dotnet#3539) * [registrar] Fix resolving linked away generic types. Fixes dotnet#3523. Fixes dotnet#3523. * [tests] Use a link all test instead of mtouch test. It's much faster, since we're already building link all everywhere. * [tests] Use the static registrar in all linkall simulator configurations.
Fixes #3523.