You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Without the space, the |-> is considered to be an operator.
Perhaps this is more something an IDE could point out, that you probably meant | _ ->.
I'm not sure though.
typeSomeUnion=| First
| Second
| Third
lettestMatch su =match su with| First ->"hey"|->"hello"// should maybe hint | _ -> or match case is given (?) lettestMatchTwo su =task{letz= Some(1)match z with|Some(n)->return""|->// should maybe hint | _ -> or match case is given (?) error disappears herelet!x= Task.Delay(200)return"hello"// construct may only be used inside a CE (?) no mention of |->}
is this related to the same? this is annoying with match expressions inside task ce...
in my case the reason was just the missing
_
in:| _ ->
for all cases, so I think the error is misleading, should suggest missing match case instead.
i didn't see it right away because the compiler error was not useful...
Originally posted by @jkone27 in #4653 (comment)
The text was updated successfully, but these errors were encountered: