Hi,
Here is some sample code that gives a protocol conformance error in a
playground:
protocol A {}
protocol B: A {}
protocol C {
func test(x: A)
}
class M: C {
func test(x: B) {}
}
Is there a reason why the compiler doesn't infer that ((B) -> ())
matches ((A) -> ()) because of inherit
> > Some context - I am talking to a teacher here at the University of
> Illinois about using Swift in some classes and she wanted to know if there
> was something could convince her, and possible students, that Swift is a
> great language to learn.
>
>
Stanford has been running a iOS development c