13 lines
No EOL
358 B
Text
13 lines
No EOL
358 B
Text
==== 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;
|
|
}
|
|
} |