Created
November 29, 2009 10:41
-
-
Save yaotti/244877 to your computer and use it in GitHub Desktop.
This file contains hidden or 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 student = { name: string; id: int };; | |
type hoge = { name: string; age: int };; | |
{ name = "hi"; id = 12 };; | |
(* | |
# type student = { name: string; id: int };; | |
type student = { name : string; id : int; } | |
# type hoge = { name: string; age: int };; | |
type hoge = { name : string; age : int; } | |
# { name = "hi"; id = 12 };; | |
Characters 0-24: | |
{ name = "hi"; id = 12 };; | |
^^^^^^^^^^^^^^^^^^^^^^^^ | |
Error: The record field label id belongs to the type student | |
but is mixed here with labels of type hoge | |
*) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment