microsoft / microsoft/TypeScript
Regression from 4.1.5 to 4.2.3: "Type instantiation is excessively deep and possibly infinite."
オープン
まだ誰も着手していません。
Needs Investigation
- 主要言語
- Go
- スター
- 111k
- フォーク
- 14.3k
- 平均マージ
- 2日 4時間
- マージ済み PR(30日)
- 132
説明
Bug Report
The attached playground compiles happily and quickly in Typescript 4.1.5, but fails with "Type instantiation is excessively deep and possibly infinite" in Typescript 4.2.3. Is a conditional distributing that didn't use to?
🔎 Search Terms
🕗 Version & Regression Information
- This changed between versions 4.1.5 and 4.2.3
- Fails on nightly as well
⏯ Playground Link
Playground link with relevant code
💻 Code
🙁 Actual behavior
4.2.3: Compilation error
nightly: Compilation error
🙂 Expected behavior
4.1.5: Compiles quickly and works fine
コントリビューションガイド
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
調査の方向性
リンクされた TypeScript Playground の再現例から始め、4.1.5、4.2.3、nightly でのコンパイルを比較します。例を縮小して、変更された conditional type または instantiation の挙動を特定します。縮小したケースを使ってコンパイラーでの調査を進め、回帰テストを追加します。再現例が excessively deep instantiation error なしで正常にコンパイルできれば完了です。
索引モデルが issue の本文から書いたものです。
評価
- 技術スタック
- typescript
- 領域
- compilers
- issue の種類
- バグ
- 難易度
- 5/5
- 見積もり時間
- 1週間以上
- 活発さ
- 停滞
- 明瞭さ
- 説明が足りない
- 初心者へのやさしさ
- 25/100