mirror of
https://github.com/swc-project/swc.git
synced 2024-12-25 06:36:08 +03:00
21 lines
406 B
TypeScript
21 lines
406 B
TypeScript
// @allowJs: true
|
|
// @checkJs: true
|
|
// @emitDeclarationOnly: true
|
|
// @strict: true
|
|
// @target: es6
|
|
// @declaration: true
|
|
// @filename: lateBoundClassMemberAssignmentJS.js
|
|
const _sym = Symbol("_sym");
|
|
export class MyClass {
|
|
constructor() {
|
|
var self = this
|
|
self[_sym] = "ok";
|
|
}
|
|
|
|
method() {
|
|
var self = this
|
|
self[_sym] = "yep";
|
|
const x = self[_sym];
|
|
}
|
|
}
|