Class Static Function Overriding results in Error

前端 未结 0 1873
情深已故
情深已故 2021-01-13 06:30

I have the following code which simply returns an error.

class Foo {
    public static logBar(a: T): T {
        console.log(a);
        return a
            


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