Commit ce877b3
authored
fix test compilation in release mode (#262)
in release mode, ppx_expect is stripped out and this fails to build
due to the value restriction:
```
File "test/test_scheduling.ml", line 870, characters 4-13:
870 | let pp_forget =
^^^^^^^^^
Error: The type of this expression,
('_weak1, [< `Still_connected | `Unknown_worker ] as '_weak2) result
Fmt.t, contains the non-generalizable type variable(s): '_weak1,
'_weak2. (see manual section 6.1.2)
```
An eta expansion suffices to fix it1 parent c1dba36 commit ce877b3
1 file changed
Lines changed: 2 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
867 | 867 | | |
868 | 868 | | |
869 | 869 | | |
870 | | - | |
| 870 | + | |
871 | 871 | | |
872 | 872 | | |
873 | 873 | | |
874 | 874 | | |
875 | | - | |
| 875 | + | |
876 | 876 | | |
877 | 877 | | |
878 | 878 | | |
| |||
0 commit comments