Just got this strange error when trying to write a stack with generic type in latest playground. I really don't understand what's wrong here, can someone explain to me why I got this error?
class MyStack<T> { var stack1 = [T]() func push<T>(value: T) { stack1.append(value) // Error: cannot invoke 'append' with an argument list of type '(T)' } }