Skip to content

Expect all expressions to have a type after type checking. #10106

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
Jun 5, 2017
Merged

Expect all expressions to have a type after type checking. #10106

merged 1 commit into from
Jun 5, 2017

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