We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9782427 commit 9c27e68Copy full SHA for 9c27e68
analysis/src/PrintType.ml
@@ -1,7 +1,9 @@
1
let printExpr ?(lineWidth = 60) typ =
2
Printtyp.reset_names ();
3
+ try
4
Res_doc.toString ~width:lineWidth
- (Res_outcome_printer.printOutTypeDoc (Printtyp.tree_of_typexp false typ))
5
+ (Res_outcome_printer.printOutTypeDoc (Printtyp.tree_of_typexp false typ (* HERE *)))
6
+ with _ -> "Error: could not print type"
7
8
let printDecl ?printNameAsIs ~recStatus name decl =
9
analysis/tests/src/expected/PolyRec.res.txt
@@ -1,2 +1,3 @@
Hover src/PolyRec.res 12:10
-Fatal error: exception Stack overflow
+{"contents": {"kind": "markdown", "value": "```rescript\nError: could not print type\n```"}}
+
0 commit comments