Skip to content

Crashes when Mapped type + Generic type alias + Generic call signature #12511

Closed
@HerringtonDarkholme

Description

@HerringtonDarkholme

TypeScript Version: nightly

Code

type HTML = { [K in 'div']: Block<HTML> } 
type Block<P> = <T>(func: HTML) => {}

declare var h: HTML
h.div(h)

Expected behavior:

Compile

Actual behavior:

Maximum call stack size exceeded at inferFromTypes

Metadata

Metadata

Assignees

Labels

BugA bug in TypeScriptFixedA PR has been merged for this issue

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions