### π Search Terms for using of explicit resource management ### π Version & Regression Information - This is the behavior in every version I tried ### β― Playground Link https://www.typescriptlang.org/play/?lib=lib.esnext.d.ts&ts=lib.esnext.d.ts#code/GYewTgBAFArgzgSwHYHMImBAvBJMA2+A3EQJQQBGYApgIYDWRQA ### π» Code ```ts for (using of = null;;) break; ``` ### π Actual behavior Reports multiple errors as a result of failed parse, including: - `Expression expected.` - `')' expected.` ### π Expected behavior It should parse successfully, much like the following: ```ts for (var of = null;;) break; for (let of = null;;) break; for (const of = null;;) break; ``` ### Additional information about the issue This was discussed in the Explicit Resource Management Repo here: https://github.com/tc39/proposal-explicit-resource-management/issues/248 The test262 test for this can be found here: https://github.com/tc39/test262/commit/fc3079a585d827fdd094f323674e1e2d66f531d4#diff-4ea0f4ef51852a9dec7036a93ec9576c387d2ad22eaf63992e36f81919c75ce3R14
Activity