Skip to content

Commit 9937e8a

Browse files
committed
fix error dynamic import of module in uncurried
1 parent d27613f commit 9937e8a

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

CHANGELOG.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,9 @@
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 using dynamic import of module in block instead of async function https://github.com/rescript-lang/rescript-compiler/pull/6434
19+
- Fix issue with using dynamic import of module in uncurried mode https://github.com/rescript-lang/rescript-compiler/pull/6434
1920

2021
# 11.0.0-rc.4
2122

jscomp/frontend/bs_builtin_ppx.ml

Lines changed: 1 addition & 0 deletions
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)