mirror of
https://github.com/hanzoai/tsgo.git
synced 2026-10-30 19:37:15 +00:00
9 lines
547 B
Plaintext
9 lines
547 B
Plaintext
awaitUsingDeclarations.12.ts(2,21): error TS2851: The initializer of an 'await using' declaration must be either an object with a '[Symbol.asyncDispose]()' or '[Symbol.dispose]()' method, or be 'null' or 'undefined'.
|
|
|
|
|
|
==== awaitUsingDeclarations.12.ts (1 errors) ====
|
|
async function f() {
|
|
await using x = {};
|
|
~~
|
|
!!! error TS2851: The initializer of an 'await using' declaration must be either an object with a '[Symbol.asyncDispose]()' or '[Symbol.dispose]()' method, or be 'null' or 'undefined'.
|
|
} |