13 lines
358 B
Plaintext
13 lines
358 B
Plaintext
|
==== tests/cases/compiler/genericGetter2.ts (2 errors) ====
|
||
|
class A<T> { }
|
||
|
|
||
|
class C<T> {
|
||
|
data: A<T>;
|
||
|
get x(): A {
|
||
|
~
|
||
|
!!! Accessors are only available when targeting ECMAScript 5 and higher.
|
||
|
~
|
||
|
!!! Generic type 'A<T>' requires 1 type argument(s).
|
||
|
return this.data;
|
||
|
}
|
||
|
}
|