mirror of
https://github.com/hanzoai/tsgo.git
synced 2026-10-30 19:37:15 +00:00
20 lines
282 B
TypeScript
20 lines
282 B
TypeScript
//// [tests/cases/compiler/forAwaitInAsyncAccessor.ts] ////
|
|
|
|
//// [a.ts]
|
|
class C {
|
|
async get x() {
|
|
for await (const y of []) {
|
|
}
|
|
}
|
|
}
|
|
|
|
|
|
//// [a.js]
|
|
"use strict";
|
|
class C {
|
|
async get x() {
|
|
for await (const y of []) {
|
|
}
|
|
}
|
|
}
|