Swift Compiler Crash With Self-Referential Types
| Originator: | josh | ||
| Number: | rdar://23350948 | Date Originated: | |
| Status: | Resolved: | ||
| Product: | Xcode | Product Version: | 7.1 |
| Classification: | Crash | Reproducible: | Always |
A protocol has a typealias. An extension to that protocol specifies a concrete type for that typealias, but it's self-referential, the Swift compiler crashes. e.g. `typealias MyAlias = (i: Int, a: MyAlias)` ...but not that obvious, you have to be more indrect about it. Kind of hard to explain; See attached playground file. Swift code: https://gist.github.com/joshhinman/77fe8045fe10fe9e27cd
Comments
Please note: Reports posted here will not necessarily be seen by Apple. All problems should be submitted at bugreport.apple.com before they are posted here. Please only post information for Radars that you have filed yourself, and please do not include Apple confidential information in your posts. Thank you!