Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
[Diagnostics] Improve error when type parameters aren't equal #17210
This improves the error for code like the following:
var a = [1,2,3,4] var b = a.popFirst()
Before it would give this error:
I found that to be very unclear about why that was a requirement.
Now it gives this error, with note about where the method was declared:
That seems much clearer to me.
I'm not sure if it's possible to use a locally-built copy of Swift in Xcode, so I'm not sure if that location is enough for tools like Xcode to properly link to the declaration of