Skip to content

Maximum call stack size exceeded #33617

Closed
@falsandtru

Description

@falsandtru

@ahejlsberg

TypeScript Version: 3.4.0-dev.20190926

Search Terms:

Code

  1. clone https://github.com/falsandtru/typed-dom
  2. checkout 89f285b
  3. run npm i
  4. change src/dom/proxy.ts as follows
  5. run node_modules/.bin/tsc -p . --noEmit
-  export interface Collection extends ReadonlyArray<El> { }
+  export type Collection = readonly El[];

Expected behavior:

no error

Actual behavior:

$ node_modules/.bin/tsc -p . --noEmit
...\typed-dom\node_modules\typescript\lib\tsc.js:76329
                throw e;
                ^

RangeError: Maximum call stack size exceeded
    at Object.some (...\typed-dom\node_modules\typescript\lib\tsc.js:668:18)
    at couldUnionOrIntersectionContainTypeVariables (...\typed-dom\node_modules\typescript\lib\tsc.js:38898:53)
    at couldContainTypeVariables (...\typed-dom\node_modules\typescript\lib\tsc.js:38894:65)
    at Object.forEach (...\typed-dom\node_modules\typescript\lib\tsc.js:225:30)
    at couldContainTypeVariables (...\typed-dom\node_modules\typescript\lib\tsc.js:38891:39)
    at Object.forEach (...\typed-dom\node_modules\typescript\lib\tsc.js:225:30)
    at couldContainTypeVariables (...\typed-dom\node_modules\typescript\lib\tsc.js:38891:39)
    at Object.some (...\typed-dom\node_modules\typescript\lib\tsc.js:673:25)
    at couldUnionOrIntersectionContainTypeVariables (...\typed-dom\node_modules\typescript\lib\tsc.js:38898:53)
    at couldContainTypeVariables (...\typed-dom\node_modules\typescript\lib\tsc.js:38894:65)

Playground Link:

Related Issues:

Metadata

Metadata

Assignees

Labels

BugA bug in TypeScriptFix AvailableA PR has been opened for this issue

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions