Skip to content

Commit 32b1563

Browse files
authored
Bring #import back for Core compatibility (#7177)
The primitive for dynamic import has been renamed to `%import`, but there are a few libraries directly rely on compiler primitives.
1 parent 6f77efa commit 32b1563

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

compiler/ml/translcore.ml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -396,6 +396,7 @@ let primitives_table =
396396
("#nullable_to_opt", Pnull_to_opt);
397397
("#undefined_to_opt", Pundefined_to_opt);
398398
("#makemutablelist", Pmakelist Mutable);
399+
("#import", Pimport);
399400
(* FIXME: Deprecated *)
400401
("%obj_field", Parrayrefu);
401402
|]

0 commit comments

Comments
 (0)