Xcode-7-beta.6 (7A192o): [Swift] Can't conform to protocol requiring an Optional<T> with IUO<T>
| Originator: | segiddins | ||
| Number: | rdar://22426323 | Date Originated: | 25-Aug-2015 02:21 PM |
| Status: | Open | Resolved: | |
| Product: | Developer Tools | Product Version: | Xcode-7-beta.6 (7A192o) |
| Classification: | Serious Bug | Reproducible: | Always |
Summary:
You should be able to conform to a protocol that requires a property of T? with a property of T!, but that yields compiler errors.
Steps to Reproduce:
1> protocol P { var s: String? { get } }
2> class C: P { var s: String! }
Expected Results:
This should compile.
Actual Results:
But it totally doesn’t.
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!