type bird = { wings: int; beak: int;} let pituh = {wings = 2; beak = 1;};;print_int pituh.teeth;
Standard input is empty
File "prog.ml", line 7, characters 16-21: Error: This expression has type bird The field teeth does not belong to type bird
Standard output is empty
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!