mirror of
https://github.com/swc-project/swc.git
synced 2024-12-20 04:01:39 +03:00
8 lines
184 B
TypeScript
8 lines
184 B
TypeScript
|
// @target: es2017
|
||
|
// @noEmitHelpers: true
|
||
|
declare var a: boolean;
|
||
|
declare var p: Promise<boolean>;
|
||
|
async function func(): Promise<void> {
|
||
|
"use strict";
|
||
|
var b = await p || a;
|
||
|
}
|