diff options
| author | Emilio Jesus Gallego Arias | 2018-07-25 18:46:02 +0200 |
|---|---|---|
| committer | Emilio Jesus Gallego Arias | 2018-07-25 18:46:02 +0200 |
| commit | e1f7bb0bba093e5e5398bfe5a2a5d0ffabdf1405 (patch) | |
| tree | 701a0f25de3310aa7cc82860445d03429d6bc03c /interp | |
| parent | efb7e23bb22bc7e9e3c2242d9d6a3ca85a6e9e47 (diff) | |
| parent | 232b8230833440b5bd982d6d434e8ca111a62d49 (diff) | |
Merge PR #8133: Fixes #8126: issue with notations and nested applications
Diffstat (limited to 'interp')
| -rw-r--r-- | interp/constrintern.ml | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/interp/constrintern.ml b/interp/constrintern.ml index c87768b190..715823e5d0 100644 --- a/interp/constrintern.ml +++ b/interp/constrintern.ml @@ -1891,9 +1891,9 @@ let internalize globalenv env pattern_mode (_, ntnvars as lvar) c = intern_applied_reference intern env (Environ.named_context globalenv) lvar us args ref in - (* Rem: GApp(_,f,[]) stands for @f *) - DAst.make ?loc @@ - GApp (f, intern_args env args_scopes (List.map fst args)) + (* Rem: GApp(_,f,[]) stands for @f *) + if args = [] then DAst.make ?loc @@ GApp (f,[]) else + smart_gapp f loc (intern_args env args_scopes (List.map fst args)) | CApp ((isproj,f), args) -> let f,args = match f.CAst.v with |
