summaryrefslogtreecommitdiff
path: root/tests/testdata/run/explicit_resource_management/main.ts
diff options
context:
space:
mode:
Diffstat (limited to 'tests/testdata/run/explicit_resource_management/main.ts')
-rw-r--r--tests/testdata/run/explicit_resource_management/main.ts21
1 files changed, 0 insertions, 21 deletions
diff --git a/tests/testdata/run/explicit_resource_management/main.ts b/tests/testdata/run/explicit_resource_management/main.ts
deleted file mode 100644
index 0201a51f9..000000000
--- a/tests/testdata/run/explicit_resource_management/main.ts
+++ /dev/null
@@ -1,21 +0,0 @@
-class Resource {
- [Symbol.dispose]() {
- console.log("Disposed");
- }
-}
-class AsyncResource {
- async [Symbol.asyncDispose]() {
- await new Promise((resolve) => setTimeout(resolve, 10));
- console.log("Async disposed");
- }
-}
-
-{
- using resource = new Resource();
- console.log("A");
-}
-{
- await using resource = new AsyncResource();
- console.log("B");
-}
-console.log("C");