Files
tsgo/testdata/baselines/reference/submoduleAccepted/compiler/checkingObjectWithThisInNamePositionNoCrash.errors.txt.diff

16 lines
1.0 KiB
Diff

--- old.checkingObjectWithThisInNamePositionNoCrash.errors.txt
+++ new.checkingObjectWithThisInNamePositionNoCrash.errors.txt
@@= skipped -0, +0 lines =@@
-checkingObjectWithThisInNamePositionNoCrash.ts(2,5): error TS7023: 'doit' implicitly has return type 'any' because it does not have a return type annotation and is referenced directly or indirectly in one of its return expressions.
checkingObjectWithThisInNamePositionNoCrash.ts(4,19): error TS2339: Property 'a' does not exist on type '{ doit(): { [x: number]: string; }; }'.
-==== checkingObjectWithThisInNamePositionNoCrash.ts (2 errors) ====
+==== checkingObjectWithThisInNamePositionNoCrash.ts (1 errors) ====
export const thing = {
doit() {
- ~~~~
-!!! error TS7023: 'doit' implicitly has return type 'any' because it does not have a return type annotation and is referenced directly or indirectly in one of its return expressions.
return {
[this.a]: "", // should refer to the outer object with the doit method, notably not present
~