You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: jscomp/ext/warnings.ml
+13-13
Original file line number
Diff line number
Diff line change
@@ -485,30 +485,30 @@ let message = function
485
485
^" : using an empty string as a shorthand to infer the external's name \
486
486
from the value's name is dangerous when refactoring, and therefore \
487
487
deprecated"
488
-
|Bs_unimplemented_primitives -> "Unimplemented primitive used:"^ s
488
+
|Bs_unimplemented_primitives -> "Unimplemented primitive used:"^ s
489
489
|Bs_integer_literal_overflow ->
490
490
"Integer literal exceeds the range of representable integers of type int"
491
491
|Bs_uninterpreted_delimiterss -> "Uninterpreted delimiters "^ s
492
492
|Bs_toplevel_expression_unithelp ->
493
-
Printf.sprintf "This%sis at the top level and is expected to return `unit`. But it's returning %s.\n\n In ReScript, anything at the top level must evaluate to `unit`. You can fix this by assigning the expression to a value, or piping it into the `ignore` function.%s"
494
-
(match help with
495
-
|Some (_, FunctionCall) -> " function call "
496
-
|_ -> "")
493
+
Printf.sprintf "This%sis at the top level and is expected to return `unit`. But it's returning %s.\n\n In ReScript, anything at the top level must evaluate to `unit`. You can fix this by assigning the expression to a value, or piping it into the `ignore` function.%s"
Printf.sprintf "\n\n Possible solutions:\n - Assigning to a value that is then ignored: `let _ = %s`\n - Piping into the built-in ignore function to ignore the result: `%s->ignore`" help_text help_text
508
-
|_ -> "")
508
+
|_ -> "")
509
509
|Bs_todomaybe_text -> (
510
-
match maybe_text with
511
-
|None -> "Todo found."
510
+
match maybe_text with
511
+
|None -> "Todo found."
512
512
|Sometodo -> "Todo found: "^ todo
513
513
) ^"\n\n This code is not implemented yet and will crash at runtime. Make sure you implement this before running the code."
0 commit comments