Join GitHub today
GitHub is home to over 31 million developers working together to host and review code, manage projects, and build software together.Sign up
Type synonym definitions can weaken constraints of previously defined types through their manifests #7160
Original bug ID: 7160
The attached example shows how type defining a type synonym with an incompatible manifest can actually change the previous definition instead of being rejected. This can potentially lead to segmentation faults when ill-typed programs are accepted.
Steps to reproduce
(* OCaml version 4.03.0+beta1*)