Last active
February 7, 2019 11:42
-
-
Save sisoje/480e95964932cfce86be9331a999068b to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// compiles: | |
let goodKeyPath1: KeyPath<Person, String> = \Person.name | |
let goodKeyPath2: KeyPath<Person, Int> = \Person.age | |
// doesn't compile: | |
let badKeyPath = \Person.password |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment