Created
October 7, 2017 13:05
-
-
Save kateinoigakukun/19f5ac527ebf0efa2fe2953e06390d01 to your computer and use it in GitHub Desktop.
これ、'T' does not have a member type named 'A'; did you mean 'A'? になる #swift #CodePiece
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
func foo<T: P>(a: T) -> T.A { | |
fatalError() | |
} | |
struct B {} | |
protocol P {} | |
extension P { | |
typealias A = B | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
か
にすると通るようになる。