Skip to content

Compiler crashes with generics  #37974

Closed
@mohsen1

Description

@mohsen1

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:
#33133
#33732
#35186

Metadata

Metadata

Assignees

Labels

BugA bug in TypeScript

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions