**TypeScript Version:** "^3.8.3" "No error for last overload signature" error **Code** I could narrow it down to this repository: https://github.com/mohsen1/TS-No-error-for-last-overload-signature https://github.com/mohsen1/TS-No-error-for-last-overload-signature/blob/fbd33f9aad6b3fd1f914b6bfe23cebc5db1dd12f/src/index.ts#L22-L23 ``` wrapResolver( resolver(AModel) || []) ``` **Expected behavior:** Type error, `wrapResolver` is not suppose to get an array **Actual behavior:** Compiler crash **Related Issues:** <!-- Did you find other bugs that looked similar? --> https://github.com/microsoft/TypeScript/issues/33133 https://github.com/microsoft/TypeScript/issues/33732 https://github.com/microsoft/TypeScript/issues/35186
TypeScript Version: "^3.8.3"
"No error for last overload signature" error
Code
I could narrow it down to this repository:
https://github.com/mohsen1/TS-No-error-for-last-overload-signature
https://github.com/mohsen1/TS-No-error-for-last-overload-signature/blob/fbd33f9aad6b3fd1f914b6bfe23cebc5db1dd12f/src/index.ts#L22-L23
Expected behavior:
Type error,
wrapResolveris not suppose to get an arrayActual behavior:
Compiler crash
Related Issues:
#33133
#33732
#35186