Skip to content

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