You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Coercion hint: suggestion that doesn't compile after a parenthesized operand, and the hint names the expanded type #9105
The error is reported at 4:12-21, which leaves out the final ). The hint suggests v->(r => r :> b), and applying it fails with "Type 'a => 'a is not a subtype of b". A suggestion that compiles is (v->(r => r) :> b). The rewrite is built from Parser.extract_text_at_loc loc, so it inherits the truncated location.
The hint names the expanded type.
letf= (x: Generator.t<'a, unit, unit>): Iterable.t<'a> =>x
The message says the expected type is Iterable.t<'a> (defined as iterable<'a>), but the hint suggests (x :> iterable<'a>). That compiles, but it doesn't name the type the message shows. The target comes from the expanded element of the trace pair (error_message_utils.ml#L774-L779).
Activity
Suggest a coercion only for an operand that parses and name the shown…
Suggest a coercion only for an operand that parses and name the shown…
Fix coercion hint for parenthesized operands and aliased target types (…