Pattern: Duplicated key in dictionary literal
Issue: -
Dictionary literals with duplicated keys will crash in runtime.
Examples of correct code:
[
1: "1",
2: "2"
]
Examples of incorrect code:
[
1: "1",
2: "2",
↓1: "one"
]
Pattern: Duplicated key in dictionary literal
Issue: -
Dictionary literals with duplicated keys will crash in runtime.
Examples of correct code:
[
1: "1",
2: "2"
]
Examples of incorrect code:
[
1: "1",
2: "2",
↓1: "one"
]