We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Describe the bug
The following code is invalid because the two opened existentials may have different types, but the error message does not explain that well:
func equals(_ lhs: Any, _ rhs: Any) -> Bool? { func open<A: Equatable>(_ lhs: A, _ rhs: A) -> Bool { lhs == rhs } guard let lhs = lhs as? any Equatable, let rhs = rhs as? any Equatable else { return nil } return open(lhs, rhs) }
🛑 Type 'any Equatable' cannot conform to 'Equatable'
Expected behavior A better error message that lets the user know it's not possible to open multiple existentials.
Environment
The text was updated successfully, but these errors were encountered:
Great idea for a tailored error message, thanks!
Sorry, something went wrong.
hborla
No branches or pull requests
Describe the bug
The following code is invalid because the two opened existentials may have different types, but the error message does not explain that well:
Expected behavior
A better error message that lets the user know it's not possible to open multiple existentials.
Environment
The text was updated successfully, but these errors were encountered: