13 lines
484 B
Plaintext
13 lines
484 B
Plaintext
|
==== 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.
|
||
|
}
|
||
|
|