diff options
| author | Pierre-Marie Pédrot | 2017-02-22 13:44:16 +0100 |
|---|---|---|
| committer | Pierre-Marie Pédrot | 2017-02-22 13:44:16 +0100 |
| commit | 38c773f2053dd5ba27ae889bb4299ed90b9cc319 (patch) | |
| tree | 23eefe646b197c3005946e812cdc4795e7f5c5f4 /vernac | |
| parent | d9d8977cf213f0d4b2e8d324c759c23df58ba457 (diff) | |
| parent | 27e8d8857ea5435ccec9eddd6c34324de82afd32 (diff) | |
Merge branch 'v8.6'
Diffstat (limited to 'vernac')
| -rw-r--r-- | vernac/record.ml | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/vernac/record.ml b/vernac/record.ml index d5faafaf89..b494430c28 100644 --- a/vernac/record.ml +++ b/vernac/record.ml @@ -110,7 +110,8 @@ let typecheck_params_and_fields def id pl t ps nots fs = List.iter (function LocalRawDef (b, _) -> error default_binder_kind b | LocalRawAssum (ls, bk, ce) -> List.iter (error bk) ls - | LocalPattern _ -> assert false) ps + | LocalPattern (loc,_,_) -> + Loc.raise ~loc (Stream.Error "pattern with quote not allowed in record parameters.")) ps in let impls_env, ((env1,newps), imps) = interp_context_evars env0 evars ps in let t', template = match t with |
