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
let _:Int= a6 // expected-error{{value of type '[A]'}}
158
+
159
+
leta7:someCollection=[1,"Swift"]
160
+
// expected-warning@-1{{heterogeneous collection literal could only be inferred to '[Any]'; add explicit type annotation if this is intentional}} {{41-41= as [Any]}}
161
+
leta8:(anySequence)?=[1,"Swift"]
162
+
// expected-warning@-1{{heterogeneous collection literal could only be inferred to '[Any]'; add explicit type annotation if this is intentional}}
163
+
leta9:anySequence=[1,nil,"Swift"]
164
+
// expected-warning@-1{{heterogeneous collection literal could only be inferred to '[Any?]'; add explicit type annotation if this is intentional}}
0 commit comments