mirror of
https://github.com/hanzoai/tsgo.git
synced 2026-10-30 19:37:15 +00:00
10965f576b
Co-authored-by: copilot-swe-agent[bot] <[email protected]> Co-authored-by: jakebailey <[email protected]>
28 lines
469 B
TypeScript
28 lines
469 B
TypeScript
//// [tests/cases/compiler/declarationEmitInferredObjectLiteralWithThis.ts] ////
|
|
|
|
//// [declarationEmitInferredObjectLiteralWithThis.ts]
|
|
export class C {
|
|
foo() {
|
|
return {
|
|
self: this,
|
|
};
|
|
}
|
|
|
|
prop = {
|
|
self: this,
|
|
};
|
|
}
|
|
|
|
|
|
//// [declarationEmitInferredObjectLiteralWithThis.js]
|
|
export class C {
|
|
foo() {
|
|
return {
|
|
self: this,
|
|
};
|
|
}
|
|
prop = {
|
|
self: this,
|
|
};
|
|
}
|