mirror of
https://github.com/hanzoai/tsgo.git
synced 2026-10-30 19:37:15 +00:00
23 lines
443 B
TypeScript
23 lines
443 B
TypeScript
//// [tests/cases/conformance/salsa/lateBoundClassMemberAssignmentJS2.ts] ////
|
|
|
|
//// [lateBoundClassMemberAssignmentJS2.js]
|
|
const _sym = "my-fake-sym";
|
|
export class MyClass {
|
|
constructor() {
|
|
this[_sym] = "ok";
|
|
}
|
|
|
|
method() {
|
|
this[_sym] = "yep";
|
|
const x = this[_sym];
|
|
}
|
|
}
|
|
|
|
|
|
|
|
//// [lateBoundClassMemberAssignmentJS2.d.ts]
|
|
export declare class MyClass {
|
|
constructor();
|
|
method(): void;
|
|
}
|