File tree Expand file tree Collapse file tree 3 files changed +30
-0
lines changed Expand file tree Collapse file tree 3 files changed +30
-0
lines changed Original file line number Diff line number Diff line change 12
12
13
13
+ Support sugared form of coercions in let bindings (#1739 , @gpetiot )
14
14
15
+ + Add missing parentheses around constructor used as indexing op (#1740 , @gpetiot )
16
+
15
17
#### Changes
16
18
17
19
#### New features
Original file line number Diff line number Diff line change @@ -2286,6 +2286,10 @@ end = struct
2286
2286
, {pexp_desc= Pexp_construct _ | Pexp_variant _; _} )
2287
2287
when e == exp ->
2288
2288
true
2289
+ | ( Exp {pexp_desc= Pexp_apply (e0, ((_, e) :: _ as args)); _}
2290
+ , {pexp_desc= Pexp_construct _; _} )
2291
+ when e == exp && Option. is_some (Indexing_op. get_sugar e0 args) ->
2292
+ true
2289
2293
| ( Exp {pexp_desc= Pexp_apply (op1, [(_, e)]); _}
2290
2294
, {pexp_desc= Pexp_apply (_, [(_, x); _]); _} )
2291
2295
when e == exp && Exp. is_prefix op1 && Exp. exposed_left x ->
Original file line number Diff line number Diff line change @@ -172,3 +172,27 @@ let _ = Array.unsafe_get [||] (-8)
172
172
let _ = Bigarray.Genarray. get x [||] (- 8 )
173
173
174
174
let _ = Bigarray.Genarray. unsafe_get x [||] (- 8 )
175
+
176
+ let _ = [% p (Some ).(tickers)]
177
+
178
+ let _ = [% p (Explicit ).(0 / 2 )]
179
+
180
+ let _ = [% p Some. (tickers)]
181
+
182
+ let _ = [% p Explicit. (0 / 2 )]
183
+
184
+ let _ = (Some ).(tickers)
185
+
186
+ let _ = (Explicit ).(0 / 2 )
187
+
188
+ let _ = Some. (tickers)
189
+
190
+ let _ = Explicit. (0 / 2 )
191
+
192
+ let _ = f (Some ).(tickers)
193
+
194
+ let _ = f (Explicit ).(0 / 2 )
195
+
196
+ let _ = f Some. (tickers)
197
+
198
+ let _ = f Explicit. (0 / 2 )
You can’t perform that action at this time.
0 commit comments