mirror of
https://github.com/hanzoai/tsgo.git
synced 2026-10-30 19:37:15 +00:00
16 lines
1.0 KiB
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
|
|
~
|