-
Notifications
You must be signed in to change notification settings - Fork 12.9k
Closed
Labels
BugA bug in TypeScriptA bug in TypeScriptFix AvailableA PR has been opened for this issueA PR has been opened for this issue
Milestone
Description
TypeScript Version: 3.4.0-dev.20190926
Search Terms:
Code
- clone https://github.com/falsandtru/typed-dom
- checkout 89f285b
- run
npm i
- change src/dom/proxy.ts as follows
- 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:
AnyhowStep
Metadata
Metadata
Assignees
Labels
BugA bug in TypeScriptA bug in TypeScriptFix AvailableA PR has been opened for this issueA PR has been opened for this issue