Skip to content

Conversation

rudkx
Copy link
Contributor

@rudkx rudkx commented Jun 5, 2017

Rather than skipping expressions that have no type in post-type checking
verification, verify that they do have a type.

There is one exception to "all" expressions having a type. We serialize
the un-typechecked raw values of @objc enums, and thus after
deserialization we do not have types for these. We cannot distinguish
these in the verifier, though, so we just allow any integer literal
through without a type.

@rudkx
Copy link
Contributor Author

rudkx commented Jun 5, 2017

@swift-ci Please smoke test

Rather than skipping expressions that have no type in post-type checking
verification, verify that they do have a type.

There is one exception to "all" expressions having a type. We serialize
the un-typechecked raw values of @objc enums, and thus after
deserialization we do not have types for these. We cannot distinguish
these in the verifier, though, so we just allow any integer literal
through without a type.
@rudkx
Copy link
Contributor Author

rudkx commented Jun 5, 2017

@swift-ci Please smoke test

@rudkx rudkx merged commit a575283 into swiftlang:master Jun 5, 2017
@rudkx rudkx deleted the verify-expressions-have-types branch June 5, 2017 17:44
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