diff options
| author | Emilio Jesus Gallego Arias | 2020-07-17 17:00:00 +0200 |
|---|---|---|
| committer | Emilio Jesus Gallego Arias | 2020-07-17 17:00:00 +0200 |
| commit | e04e12c60fe90735c22542bfd6b0b94f4b4cbc1e (patch) | |
| tree | 20b8bf7cfe652b51a1d0ed96f5482f961dcc8b4d /interp | |
| parent | f54bc666c62ad9a66067cb486816cdfc68c2946d (diff) | |
| parent | 7bc3fb4def33b846b7ac01efe7e42ae6617d46d7 (diff) | |
Merge PR #12631: Fix record pattern interpretation with implicit arguments
Reviewed-by: herbelin
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 987aa63392..6d4ab8b4d6 100644 --- a/interp/constrintern.ml +++ b/interp/constrintern.ml @@ -1659,12 +1659,12 @@ let drop_notations_pattern looked_for genv = | None -> DAst.make ?loc @@ RCPatAtom None | Some (n, head, pl) -> let pl = - if get_asymmetric_patterns () then pl else let pars = List.make n (CAst.make ?loc @@ CPatAtom None) in - List.rev_append pars pl in + List.rev_append pars pl + in let (_,argscs) = find_remaining_scopes [] pl head in let pats = List.map2 (in_pat_sc scopes) argscs pl in - DAst.make ?loc @@ RCPatCstr(head, [], pats) + DAst.make ?loc @@ RCPatCstr(head, pats, []) end | CPatCstr (head, None, pl) -> begin |
