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
as
Apple Swift version 5.3 (swiftlang-1200.0.25.2 clang-1200.0.27.1) Target: x86_64-apple-darwin19.6.0
Also exists with Swift 5.2 but the error is less helpful (it's an "type is ambiguous" error there).
md5: a169f50c73eec734ab09085321cb0520
duplicates:
Issue Description:
KeyPaths can be used where functions are expected. But this doesn't work with the as operator.
let f: (Point) -> Int = \Point.x
{code:swift|title=This doesn't} let f = \Point.x as (Point) -> Int
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Environment
Apple Swift version 5.3 (swiftlang-1200.0.25.2 clang-1200.0.27.1)
Target: x86_64-apple-darwin19.6.0
Also exists with Swift 5.2 but the error is less helpful (it's an "type is ambiguous" error there).
Additional Detail from JIRA
md5: a169f50c73eec734ab09085321cb0520
duplicates:
Issue Description:
KeyPaths can be used where functions are expected. But this doesn't work with the
as
operator.{code:swift|title=This doesn't}
let f = \Point.x as (Point) -> Int
The text was updated successfully, but these errors were encountered: