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