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: 1963 Reporter: administrator Status: closed Resolution: not a bug Priority: normal Severity: minor Category: ~DO NOT USE (was: OCaml general)
type t = A | B isn't "equivalent" to type t = B | A since the run-time
representations of A and B differ. Therefore, the proposed subtyping would be
unsound.
Original bug ID: 1963
Reporter: administrator
Status: closed
Resolution: not a bug
Priority: normal
Severity: minor
Category: ~DO NOT USE (was: OCaml general)
Bug description
Full_Name: Henri Dubois-Ferriere
Version: 3.07+2
OS: RH7.2
Submission from: lcavpc14.epfl.ch (128.178.8.51)
test.mli:
type a = A | B
test.ml:
type a = B | A
The compiler complains that type a = A | B is not included in type a = B | A
Not a big deal, but they should be equivalent, no?
A similar problem situation occurse for a record type when the members are not
listed in the same order between the .ml and .mli.
The text was updated successfully, but these errors were encountered: