-
-
Save tarunon/b653d9326f1196e126e6edfcf60f7284 to your computer and use it in GitHub Desktop.
Swift3.1 crashes caused 2 file.
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
protocol A {} | |
class O {} | |
extension O: A {} |
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
struct F<X: O> where X: A { | |
} | |
extension F { | |
func f() -> F { | |
return F() | |
} | |
} |
条件は
1. Generics型にクラスを与え、重複した条件で束縛する。
2. extensionに自身を返す関数を定義。
3. クラスの定義とファイルを分離する。
の3つかしら
4. ReturnSelfFunction.swiftを先にswiftcに渡す という変態じみた条件がありました。
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
実際にはFのwhere句は不要なので、削除すれば良いだけではある。