mirror of
https://github.com/swc-project/swc.git
synced 2024-12-30 17:15:11 +03:00
23 lines
409 B
JavaScript
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();
|
|
};
|
|
}
|