diff options
| author | Hugo Herbelin | 2018-07-24 11:37:08 +0200 |
|---|---|---|
| committer | Hugo Herbelin | 2018-07-24 12:13:17 +0200 |
| commit | 232b8230833440b5bd982d6d434e8ca111a62d49 (patch) | |
| tree | 361a32d2a8aa39c57000089dfbc5bdf47ff9d103 /interp/constrintern.ml | |
| parent | 32415df7e24d4d79a00fae95a5f619980b006c61 (diff) | |
Fixes #8126 (issue with notations and nested applications).
No reason not to collapse inner applications with explicit arguments.
This is compatible with the ad hoc encoding of @f as GApp(f,[])/NApp(f,[]).
Diffstat (limited to 'interp/constrintern.ml')
| -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 cb50245d5a..f5022d485b 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 |
