TS Abstract method implementation can define any element of union-type as parameter

后端 未结 0 1238
慢半拍i
慢半拍i 2020-12-03 07:35

The following code throws no type error (as of TypeScript 4.1.2):

abstract class Abstract {
    abstract method(x: stri         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题