| 1 |
File "w47_inline.ml", line 30, characters 20-22: |
| 2 |
30 | let[@local never] f2 x = x (* ok *) in |
| 3 |
^^ |
| 4 |
Warning 26 [unused-var]: unused variable f2. |
| 5 |
|
| 6 |
File "w47_inline.ml", line 31, characters 24-26: |
| 7 |
31 | let[@local malformed] f3 x = x (* bad payload *) in |
| 8 |
^^ |
| 9 |
Warning 26 [unused-var]: unused variable f3. |
| 10 |
|
| 11 |
File "w47_inline.ml", line 15, characters 23-29: |
| 12 |
15 | let d = (fun x -> x) [@inline malformed attribute] (* rejected *) |
| 13 |
^^^^^^ |
| 14 |
Warning 47 [attribute-payload]: illegal payload for attribute inline. |
| 15 |
It must be either 'never', 'always', 'hint' or empty |
| 16 |
|
| 17 |
File "w47_inline.ml", line 16, characters 23-29: |
| 18 |
16 | let e = (fun x -> x) [@inline malformed_attribute] (* rejected *) |
| 19 |
^^^^^^ |
| 20 |
Warning 47 [attribute-payload]: illegal payload for attribute inline. |
| 21 |
It must be either 'never', 'always', 'hint' or empty |
| 22 |
|
| 23 |
File "w47_inline.ml", line 17, characters 23-29: |
| 24 |
17 | let f = (fun x -> x) [@inline : malformed_attribute] (* rejected *) |
| 25 |
^^^^^^ |
| 26 |
Warning 47 [attribute-payload]: illegal payload for attribute inline. |
| 27 |
It must be either 'never', 'always', 'hint' or empty |
| 28 |
|
| 29 |
File "w47_inline.ml", line 18, characters 23-29: |
| 30 |
18 | let g = (fun x -> x) [@inline ? malformed_attribute] (* rejected *) |
| 31 |
^^^^^^ |
| 32 |
Warning 47 [attribute-payload]: illegal payload for attribute inline. |
| 33 |
It must be either 'never', 'always', 'hint' or empty |
| 34 |
|
| 35 |
File "w47_inline.ml", line 23, characters 15-22: |
| 36 |
23 | let k x = (a [@inlined malformed]) x (* rejected *) |
| 37 |
^^^^^^^ |
| 38 |
Warning 47 [attribute-payload]: illegal payload for attribute inlined. |
| 39 |
It must be either 'never', 'always', 'hint' or empty |
| 40 |
|
| 41 |
File "w47_inline.ml", line 31, characters 7-12: |
| 42 |
31 | let[@local malformed] f3 x = x (* bad payload *) in |
| 43 |
^^^^^ |
| 44 |
Warning 47 [attribute-payload]: illegal payload for attribute local. |
| 45 |
It must be either 'never', 'always', 'maybe' or empty |
| 46 |
|
| 47 |
File "w47_inline.ml", line 32, characters 17-26: |
| 48 |
32 | let[@local] f4 x = 2 * x (* not local *) in |
| 49 |
^^^^^^^^^ |
| 50 |
Warning 55 [inlining-impossible]: Cannot inline: |
| 51 |
This function cannot be compiled into a static continuation |