close
Skip to content

[Constraint solver] After binding a type variable, activate affected constraints#6294

Merged
DougGregor merged 1 commit intoswiftlang:masterfrom
DougGregor:constraint-solver-gather-all-constraints
Dec 15, 2016
Merged

[Constraint solver] After binding a type variable, activate affected constraints#6294
DougGregor merged 1 commit intoswiftlang:masterfrom
DougGregor:constraint-solver-gather-all-constraints

Conversation

@DougGregor
Copy link
Copy Markdown
Member

Once we've bound a type variable, we find those inactive constraints
that mention the type variable and make them active, so they'll be
simplified again. However, we weren't finding all constraints that
could be affected---in particular, we weren't searching everything
related to the type variables in the equivalence class, which meant
that some constraints would not get visited... and we would to
type-check simply because we didn't look at a constraint again when we
should have.

Fixes rdar://problem/29633747.

…constraints

Once we've bound a type variable, we find those inactive constraints
that mention the type variable and make them active, so they'll be
simplified again. However, we weren't finding *all* constraints that
could be affected---in particular, we weren't searching everything
related to the type variables in the equivalence class, which meant
that some constraints would not get visited... and we would to
type-check simply because we didn't look at a constraint again when we
should have.

Fixes rdar://problem/29633747.
@DougGregor
Copy link
Copy Markdown
Member Author

@swift-ci please smoke test

@DougGregor DougGregor merged commit f85818f into swiftlang:master Dec 15, 2016
@DougGregor DougGregor deleted the constraint-solver-gather-all-constraints branch December 15, 2016 05:12
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