dotnet / dotnet/fsharp

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

Abierto
#4,246 2 comentarios 7 reacciones 1 asignado Reclamado por @edgarfgp Ver en GitHub
Area-Diagnostics Feature Improvement Theme-Simple-F#
Lenguaje dominante
F#
Estrellas
4.3k
Forks
876
Merge medio
4 d 8 h
PR fusionados (30 d)
133

Descripción

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.

Guía de contribución

Abrir la guía de contribución

Evaluación

Este issue todavía no se ha evaluado.

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.