Skip to content

Conversation

@rolfbjarne
Copy link
Member

Fixes #3523.

{
// 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.
Copy link
Contributor

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 ?

Copy link
Member Author

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.

@monojenkins
Copy link
Collaborator

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).
Copy link
Contributor

Choose a reason for hiding this comment

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

👍

@monojenkins
Copy link
Collaborator

Build failure

@monojenkins
Copy link
Collaborator

Build failure

@monojenkins
Copy link
Collaborator

Build failure

@rolfbjarne
Copy link
Member Author

Test failure is unrelated:

@rolfbjarne rolfbjarne merged commit 3f16223 into dotnet:master Feb 21, 2018
rolfbjarne added a commit to rolfbjarne/macios that referenced this pull request Feb 21, 2018
… (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.
rolfbjarne added a commit that referenced this pull request Feb 21, 2018
) (#3558)

* [registrar] Fix resolving linked away generic types. Fixes #3523.

Fixes #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.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants