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
Original bug ID: 5428 Reporter:@garrigue Assigned to:@garrigue Status: assigned (set by @garrigue on 2011-12-15T02:38:31Z) Resolution: open Priority: normal Severity: feature Version: 3.13.0+dev Target version: later Category: typing Tags: typing, gadts Parent of:#5425#5427
Bug description
Due to the introduction of object indexes for GADTs, the row variable of an object may now be an expansible type abbreviation.
A first consequence is that flatten_fields will not completely flatten the object, since the type abbreviation will not be expanded (flatten_fields does not receive the current environment).
Another consequence is that various functions may be called with the expansion of this type abbreviation, which is a Tfield, e.g. during printing.
Concrete problems have been fixed, but new bugs may appear in the future.
(Test cases were added to typing-gadts/test.ml)
The text was updated successfully, but these errors were encountered:
Jacques: I would suggest to close this ticket and open new ones when actual bugs are found. Or do you prefer to keep it open as a reminder to review the code?
Let's just keep it for later. It may be good as an anchor if a new bug appears. But it shouldn't be given a target version, because that doesn't make sense.
This issue has been open one year with no activity. Consequently, it is being marked with the "stale" label. What this means is that the issue will be automatically closed in 30 days unless more comments are added or the "stale" label is removed. Comments that provide new information on the issue are especially welcome: is it still reproducible? did it appear in other contexts? how critical is it? etc.
Original bug ID: 5428
Reporter: @garrigue
Assigned to: @garrigue
Status: assigned (set by @garrigue on 2011-12-15T02:38:31Z)
Resolution: open
Priority: normal
Severity: feature
Version: 3.13.0+dev
Target version: later
Category: typing
Tags: typing, gadts
Parent of: #5425 #5427
Bug description
Due to the introduction of object indexes for GADTs, the row variable of an object may now be an expansible type abbreviation.
A first consequence is that flatten_fields will not completely flatten the object, since the type abbreviation will not be expanded (flatten_fields does not receive the current environment).
Another consequence is that various functions may be called with the expansion of this type abbreviation, which is a Tfield, e.g. during printing.
Concrete problems have been fixed, but new bugs may appear in the future.
(Test cases were added to typing-gadts/test.ml)
The text was updated successfully, but these errors were encountered: