Skip to content

Commit c24460e

Browse files
committed
[runtime] Remove the toString annotations
1 parent ed0235a commit c24460e

File tree

8 files changed

+291
-241
lines changed

8 files changed

+291
-241
lines changed

.ocamlformat

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
version=0.26.2
1+
version=0.27.0
22
quiet=true
33
profile=default
44

packages/ppx/test/css-support/grid-layout-module.t/run.t

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -316,6 +316,8 @@ If this test fail means that the module is not in sync with the ppx
316316
CSS.gridRow2(`auto, `auto);
317317
CSS.gridRow2(`num(2), `span(`num(2)));
318318
CSS.gridArea2(`num(1), `num(1));
319+
let area = `num(33);
320+
CSS.gridArea(area);
319321
CSS.gridArea2(`num(1), `span(`num(1)));
320322
CSS.gridArea3(`span(`num(1)), `num(10), `num(-1));
321323
CSS.gridColumnGap(`zero);

packages/ppx/test/css-support/interpolation-location-error.t/run.t

Lines changed: 40 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,46 @@ This test ensures the location of the error is correct
1616
$ dune build
1717
File "input.re", line 2, characters 25-32:
1818
Error: This expression has type [> `gri ]
19-
but an expression was expected of type Css_types.Display.t
19+
but an expression was expected of type
20+
[< `block
21+
| `contents
22+
| `flex
23+
| `flow
24+
| `flowRoot
25+
| `grid
26+
| `inline
27+
| `inlineBlock
28+
| `inlineFlex
29+
| `inlineGrid
30+
| `inlineTable
31+
| `listItem
32+
| `mozBox
33+
| `mozInlineBox
34+
| `mozInlineStack
35+
| `msFlexbox
36+
| `msGrid
37+
| `msInlineFlexbox
38+
| `msInlineGrid
39+
| `none
40+
| `ruby
41+
| `rubyBase
42+
| `rubyBaseContainer
43+
| `rubyText
44+
| `rubyTextContainer
45+
| `runIn
46+
| `table
47+
| `tableCaption
48+
| `tableCell
49+
| `tableColumn
50+
| `tableColumnGroup
51+
| `tableFooterGroup
52+
| `tableHeaderGroup
53+
| `tableRow
54+
| `tableRowGroup
55+
| `webkitBox
56+
| `webkitFlex
57+
| `webkitInlineBox
58+
| `webkitInlineFlex ]
2059
The second variant type does not allow tag(s) `gri
2160
[1]
2261

packages/ppx/test/css-support/random.t/input.re

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -121,3 +121,9 @@ let value = `clip;
121121
[%cx {|aspect-ratio: 16 / 9;|}];
122122

123123
[%css {|color: var(--color-link);|}];
124+
125+
let interpolation = `px(10);
126+
[%cx {|
127+
right: $(interpolation);
128+
bottom: $(interpolation);
129+
|}];

packages/ppx/test/css-support/random.t/run.t

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -159,5 +159,11 @@ If this test fail means that the module is not in sync with the ppx
159159
CSS.style([|CSS.aspectRatio(`ratio((16, 9)))|]);
160160

161161
CSS.color(`var({js|--color-link|js}));
162+
163+
let interpolation = `px(10);
164+
CSS.style([|
165+
(CSS.right(interpolation): CSS.rule),
166+
(CSS.bottom(interpolation): CSS.rule),
167+
|]);
162168

163169
$ dune build

0 commit comments

Comments
 (0)