13 lines
No EOL
647 B
Text
13 lines
No EOL
647 B
Text
tests/cases/compiler/typeParametersInStaticMethods.ts(2,21): error TS2302: Static members cannot reference class type parameters.
|
|
tests/cases/compiler/typeParametersInStaticMethods.ts(2,37): error TS2302: Static members cannot reference class type parameters.
|
|
|
|
|
|
==== tests/cases/compiler/typeParametersInStaticMethods.ts (2 errors) ====
|
|
class foo<T> {
|
|
static M(x: (x: T) => { x: { y: T } }) {
|
|
~
|
|
!!! error TS2302: Static members cannot reference class type parameters.
|
|
~
|
|
!!! error TS2302: Static members cannot reference class type parameters.
|
|
}
|
|
} |