9 lines
230 B
Plaintext
9 lines
230 B
Plaintext
==== tests/cases/compiler/noTypeArgumentOnReturnType1.ts (1 errors) ====
|
|
class A<T>{
|
|
|
|
foo(): A{
|
|
~
|
|
!!! error TS2314: Generic type 'A<T>' requires 1 type argument(s).
|
|
return null;
|
|
}
|
|
} |