i tried to found out what made this happened, but i failed, is there something wrong?
did anybody else encounter the error like this?
how can i do for that, i need help
this is my code:
protocol MyProtocol {
}
struct MyStruct: MyProtocol {
}
let structs = [MyStruct(), MyStruct()]
var protocols = [MyProtocol]()
protocols = structs // it's ok
protocols += structs // this got an error