-
Notifications
You must be signed in to change notification settings - Fork 10.5k
[Parse/Sema] Move OptionalEvaluationExpr wrapping to PreCheckTarget #76981
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 smoke test |
@swift-ci please test source compatibility |
This simplify the Parser diagnostics and some type checker logic.
This comment was marked as resolved.
This comment was marked as resolved.
421e923
to
8e8e4d0
Compare
@swift-ci Please smoke test |
Test only force-pushed. Compat-suite are running |
// expected-note@-2 {{found candidate with type '(Int.Type) -> Dictionary<Int, String>.SubSequence' (aka '(Int.Type) -> Slice<Dictionary<Int, String>>')}} | ||
// expected-note@-3 {{to match this opening '['}} | ||
// expected-error@-1 {{cannot convert value of type 'Int.Type' to expected argument type 'Int'}} | ||
// expected-note@-2 {{to match this opening '['}} |
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.
This is because previously the parser didn't wrap the expression with OptionalEvaluationExpr
if it has an parse error.
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.
Great cleanup!
But a part of optional chain.
d650917
to
ffeaa71
Compare
@swift-ci Please smoke test |
@swift-ci please test source compatibility |
This simplify the Parser logic and some type checker logic.