[swift-users] Protocol conformance error

2018-01-16 Thread Roshan via swift-users
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

Re: [swift-users] Swift for students

2015-12-07 Thread Roshan via swift-users
> > 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