You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: test/Sema/diag_dictionary_keys_duplicated.swift
+18Lines changed: 18 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -209,3 +209,21 @@ let _: [String: String] = [
209
209
"\(a)":"B",
210
210
"\(1)":"C"
211
211
]
212
+
213
+
// https://github.com/apple/swift/issues/60873
214
+
let _:[Int:String]=[
215
+
#line:"A",
216
+
#line:"B"
217
+
]
218
+
219
+
let _:[Int:String]=[#line:"A", #line:"B"] // expected-warning{{dictionary literal of type '[Int : String]' has duplicate entries for #line literal key}}
0 commit comments