Skip to content

Commit 83ab747

Browse files
authored
Rephrase title
1 parent 9754d51 commit 83ab747

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

proposals/NNNN-generalize-keypath-function-conversions.md renamed to proposals/NNNN-keypath-function-subtyping.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
1-
# Generalize function conversion for key path literals
1+
# Subtyping for keypath literals as functions
22

3-
* Proposal: [SE-NNNN](NNNN-generalize-keypath-function-conversions.md)
3+
* Proposal: [SE-NNNN](NNNN-keypath-function-subtyping.md)
44
* Authors: [Frederick Kellison-Linn](https://github.com/jumhyn)
55
* Review Manager: TBD
66
* Status: **Awaiting review**
77
* Implementation: [apple/swift#39612](https://github.com/apple/swift/pull/39612)
88

99
## Introduction
1010

11-
Allow key path literals to partake in the full generality of function-function conversions, so that the following code compiles without error:
11+
Today, keypath literals can only be narrowly converted to a function which exactly matches the argument and return type. This proposal allows key path literals to partake in the full generality of the conversions we allow between arbitrary function types, so that the following code compiles without error:
1212

1313
```swift
1414
let _: (String) -> Int? = \.count

0 commit comments

Comments
 (0)