Skip to content

Start stubbing out more parts of Type::join(). #14698

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
Mar 1, 2018
Merged

Start stubbing out more parts of Type::join(). #14698

merged 1 commit into from
Mar 1, 2018

Conversation

rudkx
Copy link
Contributor

@rudkx rudkx commented Feb 17, 2018

Improve support for Optional among other things.

Return Any when it is really the best answer given the types involved,
or nullptr if we cannot yet produce an accurate result.

@rudkx
Copy link
Contributor Author

rudkx commented Feb 17, 2018

@swift-ci Please smoke test

@rudkx
Copy link
Contributor Author

rudkx commented Feb 17, 2018

@swift-could test source compatibility

@rudkx
Copy link
Contributor Author

rudkx commented Feb 17, 2018

@swift-ci test source compatibility

@rudkx rudkx changed the title [WIP] Stub out more cases for Type::join and improve support for optionals. Start stubbing out more parts of Type::join(). Feb 21, 2018
@rudkx
Copy link
Contributor Author

rudkx commented Feb 21, 2018

@swift-ci Please smoke test

@rudkx
Copy link
Contributor Author

rudkx commented Feb 21, 2018

@swift-ci Please test source compatibility

@rudkx
Copy link
Contributor Author

rudkx commented Feb 21, 2018

@swift-ci Please smoke test

@rudkx
Copy link
Contributor Author

rudkx commented Feb 21, 2018

@swift-ci Please test source compatibility

1 similar comment
@rudkx
Copy link
Contributor Author

rudkx commented Feb 21, 2018

@swift-ci Please test source compatibility

@rudkx
Copy link
Contributor Author

rudkx commented Feb 22, 2018

@swift-ci Please smoke test

@rudkx
Copy link
Contributor Author

rudkx commented Feb 22, 2018

@swift-ci Please test source compatibility

@rudkx
Copy link
Contributor Author

rudkx commented Feb 22, 2018

@swift-ci Please smoke test

1 similar comment
@rudkx
Copy link
Contributor Author

rudkx commented Feb 28, 2018

@swift-ci Please smoke test

@rudkx
Copy link
Contributor Author

rudkx commented Feb 28, 2018

@swift-ci Please test source compatibility

1 similar comment
@rudkx
Copy link
Contributor Author

rudkx commented Feb 28, 2018

@swift-ci Please test source compatibility

Improve support for Optional among other things.

Return Any when it is really the best answer given the types involved,
or nullptr if we cannot yet produce an accurate result.

This implementation returns Any? when joining Any with an
Optional<T>. In our type system both Any and Any? are effectively
subtypes of one another since each can hold all the values that the
other can hold. So this choice is somewhat arbitrary, but does line up
nicely with the notion that T is always a subtype of T?.
@rudkx
Copy link
Contributor Author

rudkx commented Mar 1, 2018

@swift-ci Please smoke test

@rudkx
Copy link
Contributor Author

rudkx commented Mar 1, 2018

@swift-ci Please test source compatibility

1 similar comment
@rudkx
Copy link
Contributor Author

rudkx commented Mar 1, 2018

@swift-ci Please test source compatibility

@rudkx rudkx merged commit be93fe0 into swiftlang:master Mar 1, 2018
@rudkx rudkx deleted the join branch March 1, 2018 16:21
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.

1 participant