What is wrong with this code?
protocol TUI { func add(x1: Int, x2: Int) -> Int { return x1 + x2 } }
Protocol functions cannot have return types.
add is a reserved keyword. Reference:
add
Nothing is wrong with it.
Protocol functions cannot have implementations.