### π Search Terms ES5, this alias ### π Version & Regression Information - This changed between versions 5.1.6 and 5.2.2 ### β― Playground Link https://www.typescriptlang.org/play?target=1&ts=5.2.2#code/MYGwhgzhAEDqBOYAOSCm9oG8BQ1rAHsA7CAF3gFdhSD4AKXPaANzBAEsATMU1aAXmh0KJMADNUALiwBfAJQCAfNFIALdhAB0rDt17DREuQpxMWbLj1R1M8gNyMZ2RknjtWvc7qt1SATzQAVUMpaDAiPzlpACMCAhBUcKxGPHhUUgp4IhVKVAc8JydsIlQAdzhEFHQ6OQcgA ### π» Code ```ts repro // @target: es5 // @showEmit: true class Wrapper { constructor( validate = (unsafe: {}) => this.validate(unsafe)) { validate({}); } private validate(typeUnsafe: any): boolean { return true; } } new Wrapper(); ``` Target: ES5 ### π Actual behavior ``` Cannot read properties of undefined (reading 'validate') ``` ### π Expected behavior No error (as with untranspiled version or with TS5.1.6) ### Additional information about the issue _No response_
π Search Terms
ES5, this alias
π Version & Regression Information
β― Playground Link
https://www.typescriptlang.org/play?target=1&ts=5.2.2#code/MYGwhgzhAEDqBOYAOSCm9oG8BQ1rAHsA7CAF3gFdhSD4AKXPaANzBAEsATMU1aAXmh0KJMADNUALiwBfAJQCAfNFIALdhAB0rDt17DREuQpxMWbLj1R1M8gNyMZ2RknjtWvc7qt1SATzQAVUMpaDAiPzlpACMCAhBUcKxGPHhUUgp4IhVKVAc8JydsIlQAdzhEFHQ6OQcgA
π» Code
Target: ES5
π Actual behavior
π Expected behavior
No error (as with untranspiled version or with TS5.1.6)
Additional information about the issue
No response