Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Warning 8 [partial-match]: this pattern-matching is not exhaustive. #11

Open
AaronNGray opened this issue Jan 20, 2022 · 0 comments
Open

Comments

@AaronNGray
Copy link

AaronNGray commented Jan 20, 2022

Getting the following :-

File "camlgen.ml", lines 31-61, characters 16-28:
31 | ................(loc, Some exp) = match exp with
32 |   | Var v -> CVar v
33 |   | Lambda (args, body) ->
34 |      assert false
35 |      (* CLambda ([args], lower g body) *)
...
58 |   | GetField (obj, field) ->
59 |      withtmp (lower g obj) (fun obj ->
60 |        CApp (CRaw "get_field", [obj; CInt (Symbol.hash field)]))
61 |   | _ -> CRaw "assert false"
Warning 8 [partial-match]: this pattern-matching is not exhaustive.
Here is an example of a case that is not matched:
(Loc (_, _, _), None)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant