Skip to content

Commit aea3ea9

Browse files
authored
fix(graindoc): Fix type printing for types and abstract types (#1238)
1 parent 3d05deb commit aea3ea9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

compiler/src/typed/oprint.re

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -646,12 +646,12 @@ and print_out_sig_item = ppf =>
646646
| Otyp_sum(_) => "enum"
647647
| Otyp_variant(_, _, _, _) =>
648648
failwith("NYI: Otyp_variant pretty-printer")
649-
| Otyp_abstract => failwith("NYI: Otyp_abstract pretty-printer")
649+
| Otyp_abstract => "type"
650650
| Otyp_open => failwith("NYI: Otyp_open pretty-printer")
651651
| Otyp_alias(_, _) => failwith("NYI: Otyp_alias pretty-printer")
652652
| Otyp_arrow(_, _) => failwith("NYI: Otyp_arrow pretty-printer")
653653
| Otyp_class(_, _, _) => failwith("NYI: Otyp_class pretty-printer")
654-
| Otyp_constr(_, _) => failwith("NYI: Otyp_constr pretty-printer")
654+
| Otyp_constr(_, _) => "type"
655655
| Otyp_manifest(_, _) =>
656656
failwith("NYI: Otyp_manifest pretty-printer")
657657
| Otyp_object(_, _) => failwith("NYI: Otyp_object pretty-printer")

0 commit comments

Comments
 (0)