aboutsummaryrefslogtreecommitdiff
path: root/interp/constrextern.ml
diff options
context:
space:
mode:
authorHugo Herbelin2019-11-14 07:19:27 +0100
committerHugo Herbelin2020-02-22 22:33:40 +0100
commit50a39015ea0c86cdb6d368ff7f92ce2091085146 (patch)
tree0b4f2fa58277a66f1c74bb757818179c29342f4f /interp/constrextern.ml
parentd6467c2fea8a29634ca649850784c95ed5b9d4f4 (diff)
Fixing a notation printing bug (missing a @ to reflect absence of imp. args).
When a non-applied reference was matching a notation to the same reference, implicit arguments were lost.
Diffstat (limited to 'interp/constrextern.ml')
-rw-r--r--interp/constrextern.ml3
1 files changed, 1 insertions, 2 deletions
diff --git a/interp/constrextern.ml b/interp/constrextern.ml
index 82ba559406..5098b2a00c 100644
--- a/interp/constrextern.ml
+++ b/interp/constrextern.ml
@@ -1216,7 +1216,7 @@ and extern_notation (custom,scopes as allscopes) vars t rules =
(* Note: NApp(NRef f,[]), hence n=0, encodes @f *)
(if Int.equal n 0 then f else DAst.make @@ GApp (f,args1)),
args2, args2scopes, args2impls
- | None when nallargs > 0 ->
+ | None ->
begin match DAst.get f with
| GRef (ref,us) -> f, args, argsscopes, argsimpls
| _ -> t, [], [], []
@@ -1226,7 +1226,6 @@ and extern_notation (custom,scopes as allscopes) vars t rules =
| GRef (ref,us) -> DAst.make @@ GApp (t,[]), [], [], []
| _ -> t, [], [], []
end
- | None -> t, [], [], []
| _ -> raise No_match in
(* Try matching ... *)
let terms,termlists,binders,binderlists =