swc/tests/tsc-references/salsa/thisPropertyAssignmentCircular/input.ts/es2015.1.normal/output.js

23 lines
409 B
JavaScript

// @allowJs: true
// @checkJs: true
// @declaration: true
// @emitDeclarationOnly: true
// @filename: thisPropertyAssignmentCircular.js
export class Foo {
slicey() {
this.foo = this.foo.slice();
}
m() {
this.foo;
}
constructor(){
this.foo = "Hello";
}
}
/** @class */ function C() {
this.x = 0;
this.x = function() {
this.x.toString();
};
}