dotnet / dotnet/fsharp

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

Aperta
#4,246 2 commenti 7 reazioni 1 assegnatario Rivendicata da @edgarfgp Vedi su GitHub
Area-Diagnostics Feature Improvement Theme-Simple-F#
Lingua principale
F#
Stelle
4.3k
Fork
876
Merge medio
4g 22h
PR unite (30g)
144

Descrizione

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.

Guida per i contributori

Apri la guida per i contributori

Valutazione

Questa issue non è ancora stata valutata.

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.