Swift 2.0 does not recognize protocol conformance
| Originator: | felix.gabel | ||
| Number: | rdar://21368545 | Date Originated: | 13.06.2015 |
| Status: | open | Resolved: | |
| Product: | Xcode | Product Version: | 7.0 Beta 1 |
| Classification: | Reproducible: | always |
protocol Foo {}
struct FooStruct : Foo {}
protocol Bar {
var foo:Foo { get }
}
struct BarStruct : Bar {
let foo = FooStruct()
}
Expected Results:
Type is inferred and recognized as being compliant
Actual Results:
Compiler error: 'Type does not conform to protocol'
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!