-
Notifications
You must be signed in to change notification settings - Fork 10.5k
[ConstraintSystem] Order VarDecl
s before other kinds of decls in disjunctions.
#72755
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
Conversation
@swift-ci please test source compatibility |
@swift-ci please smoke test |
My added test failed because I added it to a file that overloads |
…ce test now that it's in the standard library.
@swift-ci please smoke test |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@swift-ci please smoke test macOS |
(The failure looked unrelated |
Same failure again @swift-ci please smoke test macOS |
@swift-ci please smoke test macOS |
1 similar comment
@swift-ci please smoke test macOS |
Order
VarDecl
s before other kinds of declarations because they are effectively favored over functions when the two are in the same overload set. This disjunction order allowsSK_UnappliedFunction
to prune later overload choices that are functions when a solution has already been found with a property, which enables solving code like this quickly:This resolves the source compatibility regression in penny-bot.
Resolves: rdar://125674969