293816875c
* Support some late-bound special property assignments * Integrate PR feedback * PR feedback * Enable declaration on core tests * Specialize type of binary expression used for late binding, speculative fix to navigation bar, merge check and type for elem/property accesses * Add test showing current nav bar behavior (specifically the lack thereof)
18 lines
No EOL
374 B
TypeScript
18 lines
No EOL
374 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() {
|
|
this[_sym] = "ok";
|
|
}
|
|
|
|
method() {
|
|
this[_sym] = "yep";
|
|
const x = this[_sym];
|
|
}
|
|
} |