Type mismatch reported for interpolated strings with multiple % specifiers in IDE checking
メンテナーはふだん 3 日以内に返信
まだ誰も着手していません。
評価
- 難易度
- 4/5
- 見積もり時間
- 3〜5日
- 初心者へのやさしさ
- 30/100
- issue の種類
- バグ
- 明瞭さ
- 明確に書かれている
- 活発さ
- 活発
- 技術スタック
- fsharp
- 領域
- compilers
調査の方向性
Start by reproducing the error with the snippet in the issue, using ParseAndCheckFileInProject in the language service rather than fsc. The report says this regressed in #19971, so check that change first to see how interpolated format strings are type-checked. Done means $"%b{flag} %b{flag}" type-checks without error in the IDE path and the existing interpolation tests still pass.
索引モデルが issue の本文から書いたものです。
説明
Consider this code:
let flag = true
let s = $"%b{flag} %b{flag}"
It compiles fine with fsc, but ParseAndCheckFileInProject reports an error on the string:
Error FS0001 : Type mismatch. Expecting a
'bool -> string'
but given a
'bool -> bool -> string'
The type 'string' does not match the type 'bool -> string'
It happens when there are two or more % specifiers and at least one of them is not a bare %s/%c/%d/%i/%M, i.e. %b, %A, %f or %5d.
This seems to be a regression in #19971. Initially reported as RIDER-143926.
- 主要言語
- F#
- スター
- 4.3k
- フォーク
- 880
- 平均マージ
- 4日 9時間
- マージ済み PR(30日)
- 117
環境構築
このプロジェクトの開発コンテナを、あなたの GitHub アカウントでブラウザ上に起動します。
- Dockerfile・Docker Compose ファイルなし
- プルリクエストのテンプレートあり
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
dotnet/fsharp のほかの issue
-
Semantic classification cache for opened documents is never populated (written to the unopened-documents cache)対応中かも @xperiandri が 35 日前に担当しました。 オープンNeeds-Triage
難易度 1/5 1時間未満 初心者へのやさしさ 90/100
メンテナーはふだん 3 日以内に返信
-
Needs-Triage
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
dotnet/fsharp#20265 · コメント 1 件 ·
メンテナーはふだん 3 日以内に返信
-
Bug Needs-Triage
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
メンテナーはふだん 3 日以内に返信
-
TransparentCompiler: scripts read #load'ed files through the global FileSystem, and DocumentSource.Custom gives new versions on every call対応中かも このイシューにリンクされたプルリクエストがオープン中、またはマージ済みです。 オープンNeeds-Triage
難易度 5/5 1週間以上 初心者へのやさしさ 8/100
dotnet/fsharp#20750 · コメント 1 件 · リアクション 1 件 ·
メンテナーはふだん 3 日以内に返信
-
Release-only wrong result in integer `for` loop: local bound inside loop range expression clobbers a local slot対応中かも このイシューにリンクされたプルリクエストがオープン中、またはマージ済みです。 オープンBug Needs-Triage
難易度 4/5 3〜5日 初心者へのやさしさ 35/100
メンテナーはふだん 3 日以内に返信
似ている issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
rescript-lang/rescript#8763 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 66/100
メンテナーはふだん 5 日以内に返信
-
bug
難易度 2/5 1〜3時間 初心者へのやさしさ 66/100
partiql/partiql-lang-kotlin#1972 ·
-
area:protocol bug
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
メンテナーはふだん 1 日以内に返信