fsharp icon indicating copy to clipboard operation
fsharp copied to clipboard

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

Open forki opened this issue 8 years ago • 1 comments

type Msg = 
| ShowImage of int


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

image

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

forki avatar Jan 23 '18 12:01 forki

Giving this a try at #4780

jwosty avatar Apr 24 '18 01:04 jwosty

Simplest message IMO should be Expected 1 argument(s) but got 0

edgarfgp avatar Oct 06 '24 20:10 edgarfgp