Skip to content

Commit 1e60805

Browse files
committed
fix typo in error
1 parent be75a18 commit 1e60805

File tree

4 files changed

+6
-6
lines changed

4 files changed

+6
-6
lines changed

ocaml/testsuite/tests/typing-layouts-float64/basics_alpha_beta.ml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -322,7 +322,7 @@ type f7_4 = [ `A of t_float64 ];;
322322
Line 1, characters 20-29:
323323
1 | type f7_4 = [ `A of t_float64 ];;
324324
^^^^^^^^^
325-
Error: Polymorpic variant constructor argument types must have layout value.
325+
Error: Polymorphic variant constructor argument types must have layout value.
326326
t_float64 has layout float64, which is not a sublayout of value.
327327
|}];;
328328

ocaml/testsuite/tests/typing-layouts/basics_alpha.ml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -447,7 +447,7 @@ end
447447
Line 2, characters 40-46:
448448
2 | type foo1 = [ `Foo1 of int | `Baz1 of t_void | `Bar1 of string ];;
449449
^^^^^^
450-
Error: Polymorpic variant constructor argument types must have layout value.
450+
Error: Polymorphic variant constructor argument types must have layout value.
451451
t_void has layout void, which is not a sublayout of value.
452452
|}];;
453453

@@ -501,7 +501,7 @@ end;;
501501
Line 2, characters 17-23:
502502
2 | val x : [`A of t_void]
503503
^^^^^^
504-
Error: Polymorpic variant constructor argument types must have layout value.
504+
Error: Polymorphic variant constructor argument types must have layout value.
505505
t_void has layout void, which is not a sublayout of value.
506506
|}]
507507

ocaml/testsuite/tests/typing-layouts/basics_beta.ml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -316,7 +316,7 @@ end
316316
Line 2, characters 40-49:
317317
2 | type foo1 = [ `Foo1 of int | `Baz1 of t_float64 | `Bar1 of string ];;
318318
^^^^^^^^^
319-
Error: Polymorpic variant constructor argument types must have layout value.
319+
Error: Polymorphic variant constructor argument types must have layout value.
320320
t_float64 has layout float64, which is not a sublayout of value.
321321
|}];;
322322

@@ -368,7 +368,7 @@ end;;
368368
Line 2, characters 17-26:
369369
2 | val x : [`A of t_float64]
370370
^^^^^^^^^
371-
Error: Polymorpic variant constructor argument types must have layout value.
371+
Error: Polymorphic variant constructor argument types must have layout value.
372372
t_float64 has layout float64, which is not a sublayout of value.
373373
|}]
374374

ocaml/typing/typetexp.ml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1369,7 +1369,7 @@ let report_error env ppf = function
13691369
let s =
13701370
match vloc with
13711371
| Tuple -> "Tuple element"
1372-
| Poly_variant -> "Polymorpic variant constructor argument"
1372+
| Poly_variant -> "Polymorphic variant constructor argument"
13731373
| Package_constraint -> "Signature package constraint"
13741374
| Object_field -> "Object field"
13751375
in

0 commit comments

Comments
 (0)