Files
tsgo/testdata/baselines/reference/submodule/conformance/usingDeclarations.17.js

50 lines
1.0 KiB
TypeScript

//// [tests/cases/conformance/statements/VariableStatements/usingDeclarations/usingDeclarations.17.ts] ////
//// [usingDeclarations.17.ts]
switch (Math.random()) {
case 0:
using d20 = { [Symbol.dispose]() {} };
break;
case 1:
using d21 = { [Symbol.dispose]() {} };
break;
default:
using d22 = { [Symbol.dispose]() {} };
}
if (true)
switch (0) {
case 0:
using d23 = { [Symbol.dispose]() {} };
break;
default:
using d24 = { [Symbol.dispose]() {} };
}
export {};
//// [usingDeclarations.17.js]
switch (Math.random()) {
case 0:
using d20 = { [Symbol.dispose]() { } };
break;
case 1:
using d21 = { [Symbol.dispose]() { } };
break;
default:
using d22 = { [Symbol.dispose]() { } };
}
if (true)
switch (0) {
case 0:
using d23 = { [Symbol.dispose]() { } };
break;
default:
using d24 = { [Symbol.dispose]() { } };
}
export {};