File tree Expand file tree Collapse file tree 3 files changed +5
-13
lines changed
tests/build_tests/super_errors/expected Expand file tree Collapse file tree 3 files changed +5
-13
lines changed Original file line number Diff line number Diff line change @@ -388,16 +388,10 @@ let print_extra_type_clash_help ~extract_concrete_typedecl ~env loc ppf
388388 @,\
389389 Possible solutions: @,\
390390 - These types are compatible at runtime. You can use the coercion \
391- operator @{<info>:>@} to convert to the expected type @{<info>%s@}."
392- target_type_string;
391+ operator to convert to the expected type" ;
393392 match suggested_rewrite with
394- | Some rewrite ->
395- fprintf ppf
396- " @,\
397- \ If you want to use coercion, rewrite the highlighted code to: \
398- @{<info>%s@}@,"
399- rewrite
400- | None -> () )
393+ | Some rewrite -> fprintf ppf " : @{<info>%s@}@," rewrite
394+ | None -> fprintf ppf " : @{<info>:>@}@," )
401395 | _ -> ()
402396
403397let type_clash_context_from_function sexp sfunct =
Original file line number Diff line number Diff line change 1111 But this function argument is expecting: [1;33mSomeModule.someType[0m
1212
1313 Possible solutions:
14- - These types are compatible at runtime. You can use the coercion operator [1;33m:>[0m to convert to the expected type [1;33mSomeModule.someType[0m.
15- If you want to use coercion, rewrite the highlighted code to: [1;33m(v :> SomeModule.someType)
14+ - These types are compatible at runtime. You can use the coercion operator to convert to the expected type: [1;33m(v :> SomeModule.someType)
1615[0m
Original file line number Diff line number Diff line change 1111 But it's expected to have type: [1;33mstring[0m
1212
1313 Possible solutions:
14- - These types are compatible at runtime. You can use the coercion operator [1;33m:>[0m to convert to the expected type [1;33mstring[0m.
15- If you want to use coercion, rewrite the highlighted code to: [1;33m(One :> string)
14+ - These types are compatible at runtime. You can use the coercion operator to convert to the expected type: [1;33m(One :> string)
1615[0m
You can’t perform that action at this time.
0 commit comments