TypeScript/tests/cases/conformance/async/es6/asyncImportedPromise_es6.ts
2015-11-30 14:10:39 -08:00

10 lines
224 B
TypeScript

// @target: es6
// @module: commonjs
// @filename: task.ts
export class Task<T> extends Promise<T> { }
// @filename: test.ts
import { Task } from "./task";
class Test {
async example<T>(): Task<T> { return; }
}