Re: [swift-users] Weird protocol behaviour.

2016-12-30 Thread Mikhail Seriukov via swift-users
is the "Protocols do not conform to themselves" limitation is coming out? 2016-12-30 18:25 GMT+07:00 Rien <r...@balancingrock.nl>: > > > On 30 Dec 2016, at 12:14, Mikhail Seriukov via swift-users < > swift-users@swift.org> wrote: > > > > Ok, > &

Re: [swift-users] Weird protocol behaviour.

2016-12-30 Thread Mikhail Seriukov via swift-users
round8.playground:9:5: error: >> cannot invoke 'foo' with an argument list of type '(P)' >>foo(x) >>^ >> >> MyPlayground8.playground:9:5: note: expected an argument list of type >> '(A)' >>foo(x) >>^ >> >> I.e. you are pa

Re: [swift-users] Weird protocol behaviour.

2016-12-23 Thread Mikhail Seriukov via swift-users
rgument list of type '(P)' >>foo(x) >>^ >> >> MyPlayground8.playground:9:5: note: expected an argument list of type >> '(A)' >> foo(x) >>^ >> >> I.e. you are passing in a protocol while the function is specified for a >> type. >&