File tree Expand file tree Collapse file tree
tests/build_tests/super_errors_multi
fixtures/Iface_variant_representation_mismatch Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11===== Foo.res =====
22
33 [1;31mWe've found a bug for you![0m
4- [36m/.../fixtures/Iface_unboxed_variant_mismatch/Foo.res[0m:[2m1:1-2:13 [0m
4+ [36m/.../fixtures/Iface_unboxed_variant_mismatch/Foo.res[0m:[2m1:1-18 [0m
55
6- [1;31m1[0m [2m│[0m [1;31mtype t =[0m
7- [1;31m2[0m [2m│[0m [1;31m | Wrap(int)[0m
8- 3 [2m│[0m
6+ [1;31m1[0m [2m│[0m [1;31mtype t = Wrap(int)[0m
7+ 2 [2m│[0m
98
109 The implementation /.../fixtures/Iface_unboxed_variant_mismatch/Foo.res
1110 does not match the interface /.../fixtures/Iface_unboxed_variant_mismatch/foo.cmi:
1211 Type declarations do not match:
1312 type t = Wrap(int)
1413 is not included in
1514 @unboxed type t = Wrap(int)
16- [36m/.../fixtures/Iface_unboxed_variant_mismatch/Foo.resi[0m:[2m2:1-3:13 [0m:
15+ [36m/.../fixtures/Iface_unboxed_variant_mismatch/Foo.resi[0m:[2m2:1-18 [0m:
1716 Expected declaration
18- [36m/.../fixtures/Iface_unboxed_variant_mismatch/Foo.res[0m:[2m1:1-2:13 [0m:
17+ [36m/.../fixtures/Iface_unboxed_variant_mismatch/Foo.res[0m:[2m1:1-18 [0m:
1918 Actual declaration
2019 Their internal representations differ:
2120 the second declaration uses unboxed representation.
Original file line number Diff line number Diff line change 1+ ===== Foo.res =====
2+
3+ [1;31mWe've found a bug for you![0m
4+ [36m/.../fixtures/Iface_variant_representation_mismatch/Foo.res[0m:[2m1:1-3:5[0m
5+
6+ [1;31m1[0m [2m│[0m [1;31mtype t =[0m
7+ [1;31m2[0m [2m│[0m [1;31m | @as(0) A[0m
8+ [1;31m3[0m [2m│[0m [1;31m | B[0m
9+ 4 [2m│[0m
10+
11+ The implementation /.../fixtures/Iface_variant_representation_mismatch/Foo.res
12+ does not match the interface /.../fixtures/Iface_variant_representation_mismatch/foo.cmi:
13+ Type declarations do not match:
14+ type t = @as(0) A | B
15+ is not included in
16+ type t = @as("zero") A | B
17+ [36m/.../fixtures/Iface_variant_representation_mismatch/Foo.resi[0m:[2m1:1-3:5[0m:
18+ Expected declaration
19+ [36m/.../fixtures/Iface_variant_representation_mismatch/Foo.res[0m:[2m1:1-3:5[0m:
20+ Actual declaration
21+ The internal representations for case A are not equal.
Original file line number Diff line number Diff line change 1+ type t =
2+ | @as (0 ) A
3+ | B
Original file line number Diff line number Diff line change 1+ type t =
2+ | @as ("zero" ) A
3+ | B
You can’t perform that action at this time.
0 commit comments