Skip to content

Conversation

@slavapestov
Copy link
Contributor

@slavapestov slavapestov commented Apr 16, 2024

This is part of #72936. It doesn't yet fix an issue with isolation checking of recursive local functions, so I can't land the assert that prevents looking at captures before they're computed, but this gets us most of the way there.

6.0 PR was already merged: #73024

…formance()

Use the self interface type instead of the declared interface type, to
get the right type for tuple conformances and the DistributedActor-as-Actor
abstract conformance.
Due to a quirk of the ASTVisitor, we would then visit
accessors twice, the first time as part of the
PatternBindingDecl inside the TopLevelCodeDecl, and
at that point the accessor body has not yet been
type checked.
Otherwise, we'll miss captures inside closures inside stored property
initializer expressions.
@slavapestov
Copy link
Contributor Author

@swift-ci Please smoke test

@slavapestov slavapestov merged commit da3cfae into main Apr 16, 2024
@slavapestov slavapestov deleted the minor-isolation-checking-fixes branch April 16, 2024 20:18
Copy link
Contributor

@ktoso ktoso left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Late review but LGTM

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.

3 participants