2014-09-12 22:35:07 +02:00
|
|
|
tests/cases/compiler/genericReturnTypeFromGetter1.ts(5,18): error TS2314: Generic type 'A<T>' requires 1 type argument(s).
|
2014-12-17 00:56:56 +01:00
|
|
|
tests/cases/compiler/genericReturnTypeFromGetter1.ts(6,7): error TS1056: Accessors are only available when targeting ECMAScript 5 and higher.
|
2014-09-12 22:35:07 +02:00
|
|
|
|
|
|
|
|
2014-07-13 01:04:16 +02:00
|
|
|
==== tests/cases/compiler/genericReturnTypeFromGetter1.ts (2 errors) ====
|
|
|
|
export interface A<T> {
|
|
|
|
new (dbSet: DbSet<T>): T;
|
|
|
|
}
|
|
|
|
export class DbSet<T> {
|
|
|
|
_entityType: A;
|
|
|
|
~
|
2014-09-12 00:19:57 +02:00
|
|
|
!!! error TS2314: Generic type 'A<T>' requires 1 type argument(s).
|
2014-07-13 01:04:16 +02:00
|
|
|
get entityType() { return this._entityType; } // used to ICE without return type annotation
|
|
|
|
~~~~~~~~~~
|
2014-09-12 00:19:57 +02:00
|
|
|
!!! error TS1056: Accessors are only available when targeting ECMAScript 5 and higher.
|
2014-07-13 01:04:16 +02:00
|
|
|
}
|
|
|
|
|