mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
Detect and diagnose a contextual mismatch between expected
collection element type and the one provided (e.g. source
of the assignment or argument to a call) e.g.:
```swift
let _: [Int] = ["hello"]
func foo(_: [Int]) {}
foo(["hello"])
```
35 KiB
35 KiB