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
openRiottypeMessage.t += Hello_worldlet()=Riot.run @@fun() ->
let pid =
spawn (fun() ->
match receive ()with|Hello_world ->
Logger.info (funf -> f "hello world from %a!"Pid.pp (self ()));
shutdown ())
in
send pid Hello_world
OCaml complains this:
Entering directory '/home/lyh/Documents/Knowledge/CS/PL/Experiments/ochain'
File "bin/main.ml", lines 9-12, characters 8-23:
9 | ........match receive () with
10 | | Hello_world ->
11 | Logger.info (fun f -> f "hello world from %a!" Pid.pp (self ()));
12 | shutdown ().
Error (warning 8 [partial-match]): this pattern-matching is not exhaustive.
Here is an example of a case that is not matched:
*extension*
Matching over values of extensible variant types (the *extension* above)
must include a wild card pattern in order to be exhaustive.
The text was updated successfully, but these errors were encountered:
Here's relevant lines in my
dune-project
file:And the example:
OCaml complains this:
The text was updated successfully, but these errors were encountered: