mirror of
https://github.com/hanzoai/tsgo.git
synced 2026-10-30 19:37:15 +00:00
38 lines
724 B
TypeScript
38 lines
724 B
TypeScript
//// [tests/cases/conformance/statements/VariableStatements/usingDeclarations/usingDeclarationsTopLevelOfModule.3.ts] ////
|
|
|
|
//// [usingDeclarationsTopLevelOfModule.3.ts]
|
|
export { y };
|
|
|
|
using z = { [Symbol.dispose]() {} };
|
|
|
|
if (false) {
|
|
var y = 1;
|
|
}
|
|
|
|
function f() {
|
|
console.log(y, z);
|
|
}
|
|
|
|
|
|
|
|
//// [usingDeclarationsTopLevelOfModule.3.js]
|
|
export { y };
|
|
function f() {
|
|
console.log(y, z);
|
|
}
|
|
var z;
|
|
const env_1 = { stack: [], error: void 0, hasError: false };
|
|
try {
|
|
z = __addDisposableResource(env_1, { [Symbol.dispose]() { } }, false);
|
|
if (false) {
|
|
var y = 1;
|
|
}
|
|
}
|
|
catch (e_1) {
|
|
env_1.error = e_1;
|
|
env_1.hasError = true;
|
|
}
|
|
finally {
|
|
__disposeResources(env_1);
|
|
}
|