6 lines
No EOL
234 B
Text
6 lines
No EOL
234 B
Text
==== tests/cases/compiler/staticMethodsReferencingClassTypeParameters.ts (1 errors) ====
|
|
class C<T> {
|
|
static s(p: T) { return p; }
|
|
~
|
|
!!! Static members cannot reference class type parameters.
|
|
} |