TypeScript/tests/cases/conformance/async/es2017/awaitInheritedPromise_es2017.ts

7 lines
144 B
TypeScript
Raw Normal View History

2016-12-08 02:17:17 +01:00
// @target: es2017
// @strictNullChecks: true
interface A extends Promise<string> {}
declare var a: A;
async function f() {
await a;
}