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

10 lines
215 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; }
}