Avatar
omochimetaru 9/8/2017 4:12 AM
protocol P0 {} extension Array where Element : P0 { func aaa() {} } var xs = Array<P0>() xs.aaa() // error: using 'P0' as a concrete type conforming to protocol 'P0' is not supported
🤔 1
4:13 AM
protocol P0 {} extension Array where Element : P0 { func aaa() {} } extension Array where Element == P0 { func aaa() {} } var xs = Array<P0>() xs.aaa() // compile ok
🤔 2