mirror of
https://github.com/swc-project/swc.git
synced 2024-12-25 06:36:08 +03:00
23 lines
397 B
TypeScript
23 lines
397 B
TypeScript
|
// @allowJs: true
|
||
|
// @checkJs: true
|
||
|
// @declaration: true
|
||
|
// @emitDeclarationOnly: true
|
||
|
// @filename: thisPropertyAssignmentCircular.js
|
||
|
export class Foo {
|
||
|
constructor() {
|
||
|
this.foo = "Hello";
|
||
|
}
|
||
|
slicey() {
|
||
|
this.foo = this.foo.slice();
|
||
|
}
|
||
|
m() {
|
||
|
this.foo
|
||
|
}
|
||
|
}
|
||
|
|
||
|
/** @class */
|
||
|
function C() {
|
||
|
this.x = 0;
|
||
|
this.x = function() { this.x.toString(); }
|
||
|
}
|