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