swc/crates/swc_ecma_parser/tests/tsc/asyncImportedPromise_es5.ts

11 lines
243 B
TypeScript

// @target: es5
// @lib: es5,es2015.promise
// @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; }
}