dotnet / dotnet/fsharp

Improve error message in pattern matching when we forget to match the payload

Đang mở
#4,246 2 bình luận 7 reaction 1 người được giao Được @edgarfgp nhận Xem trên GitHub
Area-Diagnostics Feature Improvement Theme-Simple-F#
Ngôn ngữ chính
F#
Star
4.3k
Fork
876
Merge trung bình
5 ngày 9 giờ
Pull request đã merge (30 ngày)
153

Mô tả

type Msg =
| ShowImage of int

let update model (msg:Msg) =
match msg with
| ShowImage ->
model

![image](https://user-images.githubusercontent.com/57396/35276256-164039ca-0043-11e8-8f95-beaa4f99ecda.png)

this is not helpful for newcomers. We should somehow explain that the pattern needs a payload placeholder.

Hướng dẫn đóng góp

Mở hướng dẫn đóng góp

Đánh giá

Issue này chưa được đánh giá.

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.