fork(1) download
  1. type bird = {
  2. wings: int;
  3. beak: int;
  4. }
  5.  
  6. let pituh = {wings = 2; beak = 1;};;
  7. print_int pituh.teeth;
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
Standard input is empty
compilation info
File "prog.ml", line 7, characters 16-21:
Error: This expression has type bird
       The field teeth does not belong to type bird
stdout
Standard output is empty