9 lines
No EOL
397 B
Text
9 lines
No EOL
397 B
Text
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.
|
|
} |