## Steps to reproduce ```ts function Stream() { } Stream.prototype = { endOfStream: function (): boolean { return !this.tokens.length; }, }; ``` [Playground Link](https://www.typescriptlang.org/play/?#code/GYVwdgxgLglg9mABAZSgJwKYEMC2AKASkQG8BYAKAF8KLVNcA6ABzTijYE8mNEBeEioiGIMYACYB5YHWw4AXIlCRYCRIQUAjOHAA22JGXLDjiTFBBokAQigALGAGcG7ANainesAHM7AbkHClAA0FJT+5EA) ## Behavior with `typescript@5.8` `this` was `any` so `this.tokens` was not an error. ## Behavior with `tsgo` this is typed as `{ endOfStream: () => any; }` resulting in an error on `this.tokens`