Skip to content

Commit 3b3dbfd

Browse files
authored
playground: fix bug when printing recursive polyvariant types without concrete declarations (#6532)
1 parent 7890609 commit 3b3dbfd

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

jscomp/jsoo/jsoo_playground_main.ml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -304,6 +304,7 @@ let rescript_parse ~filename src =
304304
module Printer = struct
305305
let printExpr typ =
306306
Printtyp.reset_names();
307+
Printtyp.reset_and_mark_loops typ;
307308
Res_doc.toString
308309
~width:60 (Res_outcome_printer.printOutTypeDoc (Printtyp.tree_of_typexp false typ))
309310

0 commit comments

Comments
 (0)