diff options
| author | Maxime Dénès | 2017-11-20 10:21:46 +0100 |
|---|---|---|
| committer | Maxime Dénès | 2017-11-20 10:21:46 +0100 |
| commit | 9d3a07d9a7ddf3a0e33b6b1f60d3c89037dc55b7 (patch) | |
| tree | f3851eb1d58e7944f715e3d6aacf4ea07b70e911 /vernac/command.ml | |
| parent | 6ef1e22f17b7a4d16fbc519240b4df1e3915ffef (diff) | |
| parent | 685643098eeef00fe1f8dfca0927db2e812e1e7a (diff) | |
Merge PR #6125: Fixing remaining problems with bug #5762 and PR #1120 (clause "where" with implicit arguments)
Diffstat (limited to 'vernac/command.ml')
| -rw-r--r-- | vernac/command.ml | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/vernac/command.ml b/vernac/command.ml index be54f97b72..b027863e8e 100644 --- a/vernac/command.ml +++ b/vernac/command.ml @@ -551,12 +551,13 @@ let interp_mutual_inductive (paramsl,indl) notations cum poly prv finite = lift_implicits (Context.Rel.nhyps ctx_params) impls) arities in let arities = List.map pi1 arities and aritypoly = List.map pi2 arities in let impls = compute_internalization_env env0 ~impls (Inductive (params,true)) indnames fullarities indimpls in + let ntn_impls = compute_internalization_env env0 (Inductive (params,true)) indnames fullarities indimpls in let mldatas = List.map2 (mk_mltype_data evdref env_params params) arities indnames in let constructors = Metasyntax.with_syntax_protection (fun () -> (* Temporary declaration of notations and scopes *) - List.iter (Metasyntax.set_notation_for_interpretation env_params impls) notations; + List.iter (Metasyntax.set_notation_for_interpretation env_params ntn_impls) notations; (* Interpret the constructor types *) List.map3 (interp_cstrs env_ar_params evdref impls) mldatas arities indl) () in |
