GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Inline async arrow with `await using` inside outer `await using` crashes TS checker · Issue #1712 · TypeScriptToLua/TypeScriptToLua

Inline async arrow with await using inside outer await using crashes TS checker #1712

New issue
Copy link
New issue
Copy link
Open
Open
Inline async arrow with await using inside outer await using crashes TS checker#1712
Copy link

Description

@RealColdFry
RealColdFry
opened on Apr 16, 2026
Issue body actions

Following on from #1622 , needs separate fix from #1711 which masks the crash but leaves the below crashes.


return await (async ...

https://typescripttolua.github.io/play/#code/5.4/IYZwngdgxgBAZgV2gFwJYHsIwOYFNkCCAFAJQBcMACgE7oC2qIuAPAeNACKMAO6IwAIwA2uAHwwA3gCgYMavgTUsEmAG0AymDoD0QgHShIULiF5MAuhUPQYpGAF5xEgL4xnAbinOpU67EQoGFjoCMi41HbSssAA7sCoyDAIIKgQ2DDADhlxCTj4xCSesvLIilix8YlEfrYkDk4ystmVSSlpMAJZFbl4hKRFTSVlMACMIwPOJP1eUkA

async function getA(): Promise<AsyncDisposable> {
  return { [Symbol.asyncDispose]: async () => {} };
}

async function outer() {
  await using a = await getA();
  return await (async () => {
    await using b = await getA();
    return 11;
  })();
}

return (async ...

https://typescripttolua.github.io/play/#code/5.4/IYZwngdgxgBAZgV2gFwJYHsIwOYFNkCCAFAJQBcMACgE7oC2qIuAPAeNACKMAO6IwAIwA2uAHwwA3gCgYMavgTUsEmAG0AymDoD0QgHShIULiF5MAuhUPQYpGAF5xEgL4xnAbinOpU67EQoGFjoCMi41HbSssAA7sCoyDAIIKgQ2DDADhlxCTj4xCSesvLIilhEfrYkDk4ystnxicmp6QJZsY15hKRF9SVlMACMg73OJD1eQA

async function getA(): Promise<AsyncDisposable> {
  return { [Symbol.asyncDispose]: async () => {} };
}

async function outer() {
  await using a = await getA();
  return (async () => {
    await using b = await getA();
    return 11;
  })();
}

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

      You are visitor 01402503 — GeezerVison does not store the pages you look up.
      Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.