TypeScript/tests/baselines/reference/genericReturnTypeFromGetter1.errors.txt
Cyrus Najmabadi f1a2e41a8a Sort diagnostics in our baseline output.
This was we don't get noisy baselines just because a different phase of the compiler reported
the diagnostic.

This helps with Yui's refactoring work to move grammar checks into the type checker.
2014-12-16 15:56:56 -08:00

17 lines
783 B
Plaintext

tests/cases/compiler/genericReturnTypeFromGetter1.ts(5,18): error TS2314: Generic type 'A<T>' requires 1 type argument(s).
tests/cases/compiler/genericReturnTypeFromGetter1.ts(6,7): error TS1056: Accessors are only available when targeting ECMAScript 5 and higher.
==== 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.
}