-
Notifications
You must be signed in to change notification settings - Fork 10.6k
[Sema] Warn about dictionary literal of dictionary type about duplicated keys #60479
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
[Sema] Warn about dictionary literal of dictionary type about duplicated keys #60479
Conversation
@swift-ci Please test |
@swift-ci Please test macOS platform |
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.
Overall looks great, thank you! I left a couple comments inline.
739a6f8
to
f3cb449
Compare
054baa4
to
2d1bcd2
Compare
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.
Looks great! I have left a couple of comments inline, no need for re-review.
c9c7324
to
30049fc
Compare
30049fc
to
4186214
Compare
4186214
to
1b7b6a3
Compare
@swift-ci Please test |
This simply warns about dictionary literal with duplicated keys only when they are inferred as
Dictionary
where we know duplicated keys are not stored, but we cannot diagnose the same for other customExpressibleByDictionaryLiteral
type because rules are unknown.Resolves #43258.