diff options
Diffstat (limited to 'checker/validate.ml')
-rw-r--r-- | checker/validate.ml | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/checker/validate.ml b/checker/validate.ml index 4c5ca184e..b0c1704ee 100644 --- a/checker/validate.ml +++ b/checker/validate.ml @@ -69,6 +69,7 @@ let rec val_gen v ctx o = match v with (try val_tag Obj.string_tag ctx o with Failure _ -> fail ctx o "expected a string") | Any -> () + | Fail -> fail ctx o "unexpected object" | Annot (s,v) -> val_gen v (ctx/s) o (* Check that an object is a tuple (or a record). vs is an array of |