This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(* Type of data record *) | |
type rectype = CharArray | Number | |
(* My type *) | |
type _ mytype = | |
| String : string mytype | |
| Bool : bool mytype | |
| Int : int mytype | |
(* Check that data record type is compatible with my type *) |