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
It looks like the problem comes from the attempt to match strings against format tuples, which doesn't catch unification errors. I've attached a patch which fixes the immediate problem when applied, but I'm not sure that it's the right solution.
This part of the GADT patch is a bit hacky, and not there to stay anyway: the right solution is to use a nominal type for formats (it will also avoid printed error messages to print both the type and its definition); it is planned, but I didn't have time to do it properly before the merge.
Original bug ID: 6414
Reporter: @yallop
Assigned to: @gasche
Status: closed (set by @xavierleroy on 2015-12-11T18:27:01Z)
Resolution: fixed
Priority: normal
Severity: major
Version: 4.02.0+dev
Category: typing
Tags: patch
Bug description
In trunk:
if true then 1, 2 else "";;
Fatal error: exception Ctype.Unify(_)
File attachments
The text was updated successfully, but these errors were encountered: