Skip to content

Error type cleanup #18392

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 6 commits into from
Jul 31, 2018
Merged

Conversation

slavapestov
Copy link
Contributor

Dusting off a few cleanups I've had sitting around for a while.

… reference storage qualifiers

Also, remove AbstractStorageDecl::getStorageInterfaceType(), which was
almost identical.
We would bail out early if the function type contained an
error type anywhere, which is incorrect.
…against ill-formed code

In an upcoming patch we're going to start calling computeType() on
constructors and destructors parsed outside type context, so let's
just bail out if we're not in type context, instead of crashing.
…Params() to typeCheckDecl()

Checking these in a code path called from validateDecl() is overkill;
it's sufficient to perform these checks in declarations in primary files
only.
@slavapestov
Copy link
Contributor Author

@swift-ci Please smoke test

@slavapestov slavapestov merged commit d71ebcd into swiftlang:master Jul 31, 2018
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