Last active
March 25, 2016 08:08
-
-
Save hiroshi-maybe/169e6b4166723532b172 to your computer and use it in GitHub Desktop.
Swift compiler crash in Xcode 7.1
This file contains hidden or 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
| // 1. same name of functions with different signature in both protocol and protocol extension | |
| // 2. someone is conforming to the protocol | |
| // This should be compile error though, error does not happen. Instead Compiler crashes in AST -> SIL conversion phase. | |
| protocol FooProtocol { | |
| func sameName(differentSignature: Bool) -> UITableViewCell? | |
| } | |
| extension FooProtocol { | |
| func sameName() -> UITableViewCell { | |
| return UITableViewCell() | |
| } | |
| } | |
| // someone needs to conform to the protocol | |
| class Foo: FooProtocol {} |
Author
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Already fixed in Xcode 7.3
