[SR-14076] Special-case array literal in case of type mismatch with dictionary #56465
Labels
compiler
The Swift compiler in itself
diagnostics QoI
Bug: Diagnostics Quality of Implementation
improvement
type checker
Area → compiler: Semantic analysis
Additional Detail from JIRA
md5: 4f8a9386375d8c6aa93d0d427e573ca2
Issue Description:
Instead of this error, I think we should provide a fix-it adding the
:
. We already have a similar special case in certain cases where we say "use [:] to get an empty dictionary literal".The text was updated successfully, but these errors were encountered: