17 lines
No EOL
783 B
Text
17 lines
No EOL
783 B
Text
tests/cases/compiler/genericReturnTypeFromGetter1.ts(6,7): error TS1056: Accessors are only available when targeting ECMAScript 5 and higher.
|
|
tests/cases/compiler/genericReturnTypeFromGetter1.ts(5,18): error TS2314: Generic type 'A<T>' requires 1 type argument(s).
|
|
|
|
|
|
==== tests/cases/compiler/genericReturnTypeFromGetter1.ts (2 errors) ====
|
|
export interface A<T> {
|
|
new (dbSet: DbSet<T>): T;
|
|
}
|
|
export class DbSet<T> {
|
|
_entityType: A;
|
|
~
|
|
!!! error TS2314: Generic type 'A<T>' requires 1 type argument(s).
|
|
get entityType() { return this._entityType; } // used to ICE without return type annotation
|
|
~~~~~~~~~~
|
|
!!! error TS1056: Accessors are only available when targeting ECMAScript 5 and higher.
|
|
}
|
|
|