| 1 |
File "cannot_shadow_error.ml", line 24, characters 2-36: |
| 2 |
24 | include Comparable with type t = t |
| 3 |
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ |
| 4 |
Error: Illegal shadowing of included type t/2 by t. |
| 5 |
File "cannot_shadow_error.ml", line 23, characters 2-19: |
| 6 |
23 | include Printable |
| 7 |
^^^^^^^^^^^^^^^^^ |
| 8 |
Type t/2 came from this include. |
| 9 |
File "cannot_shadow_error.ml", line 14, characters 2-23: |
| 10 |
14 | val print : t -> unit |
| 11 |
^^^^^^^^^^^^^^^^^^^^^ |
| 12 |
The value print has no valid type if t/2 is shadowed. |