From caeef2e0dafa5a252f0734cf007435de34efb4e4 Mon Sep 17 00:00:00 2001 From: Vaibhav Srivastava Date: Sun, 13 Sep 2026 12:32:17 +0530 Subject: [PATCH] test: add regression coverage for await in namespace class computed names (#63712) --- .../conformance/async/namespaceAwaitComputedName.ts | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 tsc/testdata/tests/cases/conformance/async/namespaceAwaitComputedName.ts diff --git a/tsc/testdata/tests/cases/conformance/async/namespaceAwaitComputedName.ts b/tsc/testdata/tests/cases/conformance/async/namespaceAwaitComputedName.ts new file mode 100644 index 0000000000000..e55cadb786cdf --- /dev/null +++ b/tsc/testdata/tests/cases/conformance/async/namespaceAwaitComputedName.ts @@ -0,0 +1,11 @@ +// @target: esnext +// @module: esnext + +declare const x: string; + +namespace N { + class A { [await x]() {} } + export class B { [await x]() {} } +} + +export {};