summaryrefslogtreecommitdiff
path: root/testsuite/tests/warnings/w68.compilers.reference
blob: 0fb87c1952cbd203f2ca96b4cdf434face346179 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
File "w68.ml", line 34, characters 33-43:
34 | let dont_warn_with_partial_match None x = x
                                      ^^^^^^^^^^
Warning 8 [partial-match]: this pattern-matching is not exhaustive.
Here is an example of a case that is not matched:
Some _

File "w68.ml", line 14, characters 10-13:
14 | let alloc {a} b = a + b
               ^^^
Warning 68 [match-on-mutable-state-prevent-uncurry]: This pattern depends on mutable state.
It prevents the remaining arguments from being uncurried, which will cause additional closure allocations.