2014-09-12 22:35:07 +02:00
|
|
|
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.
|
|
|
|
|
|
|
|
|
2014-07-13 01:04:16 +02:00
|
|
|
==== tests/cases/compiler/typeParametersInStaticMethods.ts (2 errors) ====
|
|
|
|
class foo<T> {
|
|
|
|
static M(x: (x: T) => { x: { y: T } }) {
|
|
|
|
~
|
2014-09-12 00:19:57 +02:00
|
|
|
!!! error TS2302: Static members cannot reference class type parameters.
|
2014-07-13 01:04:16 +02:00
|
|
|
~
|
2014-09-12 00:19:57 +02:00
|
|
|
!!! error TS2302: Static members cannot reference class type parameters.
|
2014-07-13 01:04:16 +02:00
|
|
|
}
|
|
|
|
}
|