Swift 5.8: New warnings for Any collections?

Yes, you can see the discussion in this issue `collection literal could only be inferred to` diagnostic not shown in the presence of a contextual type · Issue #60011 · apple/swift · GitHub

We could use this thread to further discuss and gather thoughts on how to improve the diagnostic based on what people find more helpful and once settled if needed have an issue open in the compiler to address it for next version :)

cc @anthonylatsis

1 Like