mirror of
https://github.com/hanzoai/tsgo.git
synced 2026-10-30 19:37:15 +00:00
17 lines
587 B
Plaintext
17 lines
587 B
Plaintext
//// [tests/cases/conformance/classes/propertyMemberDeclarations/instanceMemberWithComputedPropertyName2.ts] ////
|
|
|
|
=== instanceMemberWithComputedPropertyName2.ts ===
|
|
// https://github.com/microsoft/TypeScript/issues/33857
|
|
"use strict";
|
|
const x = 1;
|
|
>x : Symbol(x, Decl(instanceMemberWithComputedPropertyName2.ts, 2, 5))
|
|
|
|
class C {
|
|
>C : Symbol(C, Decl(instanceMemberWithComputedPropertyName2.ts, 2, 12))
|
|
|
|
[x]: string;
|
|
>[x] : Symbol(C[x], Decl(instanceMemberWithComputedPropertyName2.ts, 3, 9))
|
|
>x : Symbol(x, Decl(instanceMemberWithComputedPropertyName2.ts, 2, 5))
|
|
}
|
|
|