mirror of
https://github.com/hanzoai/tsgo.git
synced 2026-10-30 19:37:15 +00:00
32 lines
540 B
TypeScript
32 lines
540 B
TypeScript
//// [tests/cases/conformance/salsa/thisPropertyAssignmentCircular.ts] ////
|
|
|
|
//// [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(); }
|
|
}
|
|
|
|
|
|
|
|
|
|
//// [thisPropertyAssignmentCircular.d.ts]
|
|
export declare class Foo {
|
|
foo: string;
|
|
constructor();
|
|
slicey(): void;
|
|
m(): void;
|
|
}
|