Skip to content

Swap two conditions to get dynamically looked-up optional requirement… #15856

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

Merged
merged 1 commit into from
Apr 11, 2018
Merged

Conversation

rudkx
Copy link
Contributor

@rudkx rudkx commented Apr 10, 2018

…s working.

This function (and getTypeOfMemberReference) deserve a deeper cleanup,
but for the moment lets unblock a compatibility test.

Fixes SR-7098 / rdar://problem/38394645

@rudkx
Copy link
Contributor Author

rudkx commented Apr 10, 2018

@swift-ci Please smoke test

…s working.

This function (and getTypeOfMemberReference) deserve a deeper cleanup,
but for the moment lets unblock a compatibility test.

Fixes SR-7098 / rdar://problem/38394645
@rudkx
Copy link
Contributor Author

rudkx commented Apr 10, 2018

@swift-ci Please smoke test

}

func testDynamicOptionalRequirement(_ a: AnyObject) {
a.optionalRequirement?()
Copy link
Contributor

Choose a reason for hiding this comment

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

Where is optionalRequirement defined?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

test/Inputs/clang-importer-sdk/usr/include/Foundation.h line 870.

@rudkx
Copy link
Contributor Author

rudkx commented Apr 10, 2018

@swift-ci Please test source compatibility

1 similar comment
@rudkx
Copy link
Contributor Author

rudkx commented Apr 11, 2018

@swift-ci Please test source compatibility

@rudkx rudkx merged commit 44531db into swiftlang:master Apr 11, 2018
@rudkx rudkx deleted the sr7098 branch April 11, 2018 05:25
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.

2 participants