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]>
21 lines
864 B
Plaintext
21 lines
864 B
Plaintext
declarationEmitInferredObjectLiteralWithThis.ts(2,5): error TS2527: The inferred type of 'foo' references an inaccessible 'this' type. A type annotation is necessary.
|
|
declarationEmitInferredObjectLiteralWithThis.ts(8,5): error TS2527: The inferred type of 'prop' references an inaccessible 'this' type. A type annotation is necessary.
|
|
|
|
|
|
==== declarationEmitInferredObjectLiteralWithThis.ts (2 errors) ====
|
|
export class C {
|
|
foo() {
|
|
~~~
|
|
!!! error TS2527: The inferred type of 'foo' references an inaccessible 'this' type. A type annotation is necessary.
|
|
return {
|
|
self: this,
|
|
};
|
|
}
|
|
|
|
prop = {
|
|
~~~~
|
|
!!! error TS2527: The inferred type of 'prop' references an inaccessible 'this' type. A type annotation is necessary.
|
|
self: this,
|
|
};
|
|
}
|
|
|