[SR-7066] Compiler does not warn on duplicate keys for dictionary literals #49614
Labels
bug
A deviation from expected or documented behavior. Also: expected but undesirable behavior.
compiler
The Swift compiler in itself
standard library
Area: standard library umbrella
Environment
Version 9.2 (9C40b)
Additional Detail from JIRA
md5: 55fa9f54aa6d8465d1df9a15dab092cf
Issue Description:
let insets: UIEdgeInsets = [.left: 4, .right: 4, .left: 8]
The compiler accepts this without warning. I think it probably should warn/error if the literal can be checked at compile time.
The text was updated successfully, but these errors were encountered: