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
388
388
@,\
389
389
Possible solutions: @,\
390
390
- 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" ;
393
392
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>:>@}@," )
401
395
| _ -> ()
402
396
403
397
let type_clash_context_from_function sexp sfunct =
Original file line number Diff line number Diff line change 11
11
But this function argument is expecting: [1;33mSomeModule.someType[0m
12
12
13
13
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)
16
15
[0m
Original file line number Diff line number Diff line change 11
11
But it's expected to have type: [1;33mstring[0m
12
12
13
13
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)
16
15
[0m
You can’t perform that action at this time.
0 commit comments