TypeScript/tests/cases/compiler/genericReturnTypeFromGetter1.ts

9 lines
219 B
TypeScript
Raw Normal View History

2014-07-13 01:04:16 +02:00
//@module: amd
export interface A<T> {
new (dbSet: DbSet<T>): T;
}
export class DbSet<T> {
_entityType: A;
get entityType() { return this._entityType; } // used to ICE without return type annotation
}