/ swift Public
[SR-7066] Compiler does not warn on duplicate keys for dictionary literals #49614
A deviation from expected or documented behavior. Also: expected but undesirable behavior.
The Swift compiler in itself
Area: standard library umbrella
Version 9.2 (9C40b)
Additional Detail from JIRA
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: