Skip to content

Commit a0c1f45

Browse files
committed
fix error dynamic import of module in uncurried
1 parent e4125ac commit a0c1f45

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

CHANGELOG.md

+2-1
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,10 @@
1414

1515
#### :bug: Bug Fix
1616

17-
- Fix issue with Dynamic import of module in nested expressions https://github.com/rescript-lang/rescript-compiler/pull/6431
17+
- Fix issue with dynamic import of module in nested expressions https://github.com/rescript-lang/rescript-compiler/pull/6431
1818
- Fix issue where GenType was not supporting `@tag` on ordinary variatns https://github.com/rescript-lang/rescript-compiler/pull/6437
1919
- Fix using dynamic import of module in block instead of async function https://github.com/rescript-lang/rescript-compiler/pull/6434
20+
- Fix issue with using dynamic import of module in uncurried mode https://github.com/rescript-lang/rescript-compiler/pull/6434
2021

2122
#### :nail_care: Polish
2223

jscomp/frontend/bs_builtin_ppx.ml

+1
Original file line numberDiff line numberDiff line change
@@ -620,6 +620,7 @@ let rec structure_mapper ~await_context (self : mapper) (stru : Ast_structure.t)
620620
| Pexp_let (_, vbs, expr) -> aux expr @ spelunk_vbs acc vbs
621621
| Pexp_ifthenelse (_, then_expr, Some else_expr) ->
622622
aux then_expr @ aux else_expr
623+
| Pexp_construct (_, Some expr) -> aux expr
623624
| Pexp_fun (_, _, _, expr) | Pexp_newtype (_, expr) -> aux expr
624625
| _ -> acc
625626
in

0 commit comments

Comments
 (0)