An example is push in type Stack. Again the. Scala compiler will reject the definition of this method for co-variant stacks. class Stack[+A] {.
確定! 回上一頁