FS3886: This list expression contains a single tuple element. This warning is too trigger happy

オープン
#20,962 コメント 3 件 リアクション 4 件 担当者 0 名 GitHub で見る

メンテナーはふだん 2 日以内に返信

まだ誰も着手していません。

評価

難易度
3/5
見積もり時間
1〜2日
初心者へのやさしさ
57/100
issue の種類
バグ
明瞭さ
おおむね明確
活発さ
活発
技術スタック
fsharp
領域
compilers

調査の方向性

Start by locating the implementation and tests for warning FS3886 in the F# compiler; the issue does not name specific files. Check how the warning determines whether a single tuple element was likely intended as multiple list elements, then add coverage for elements with different types and for elements with the same type. Done when the warning is suppressed for the shown mixed-type tuple and retained when the elements have the same type.

索引モデルが issue の本文から書いたものです。

説明

Feature Request
let a =
  [
    1,"a"
  ]

Did you mean to use ';' instead of ',' to separate list elements?

The warning doesn't make sense when the list elements aren't of the same type.

I would like the warning to be given only if the elements are of the same type.

主要言語
F#
スター
4.3k
フォーク
883
平均マージ
2日 12時間
マージ済み PR(30日)
80

環境構築

Codespaces で開く

このプロジェクトの開発コンテナを、あなたの GitHub アカウントでブラウザ上に起動します。

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

dotnet/fsharp のほかの issue

dotnet/fsharp の issue をすべて見る

似ている issue

Compilers の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。