mirror of
https://github.com/hanzoai/tsgo.git
synced 2026-10-30 19:37:15 +00:00
27 lines
684 B
TypeScript
27 lines
684 B
TypeScript
//// [tests/cases/conformance/statements/VariableStatements/usingDeclarations/usingDeclarationsDeclarationEmit.1.ts] ////
|
|
|
|
//// [usingDeclarationsDeclarationEmit.1.ts]
|
|
using r1 = { [Symbol.dispose]() {} };
|
|
export { r1 };
|
|
|
|
await using r2 = { async [Symbol.asyncDispose]() {} };
|
|
export { r2 };
|
|
|
|
|
|
//// [usingDeclarationsDeclarationEmit.1.js]
|
|
using r1 = { [Symbol.dispose]() { } };
|
|
export { r1 };
|
|
await using r2 = { async [Symbol.asyncDispose]() { } };
|
|
export { r2 };
|
|
|
|
|
|
//// [usingDeclarationsDeclarationEmit.1.d.ts]
|
|
declare const r1: {
|
|
[Symbol.dispose](): void;
|
|
};
|
|
export { r1 };
|
|
declare const r2: {
|
|
[Symbol.asyncDispose](): Promise<void>;
|
|
};
|
|
export { r2 };
|