9 lines
397 B
Plaintext
9 lines
397 B
Plaintext
tests/cases/compiler/staticMethodsReferencingClassTypeParameters.ts(2,17): error TS2302: Static members cannot reference class type parameters.
|
|
|
|
|
|
==== tests/cases/compiler/staticMethodsReferencingClassTypeParameters.ts (1 errors) ====
|
|
class C<T> {
|
|
static s(p: T) { return p; }
|
|
~
|
|
!!! error TS2302: Static members cannot reference class type parameters.
|
|
} |