fork download
  1. type year = int option
  2. let happy_new_year(year: year) =
  3. Printf.printf "%d年あけましておめでとうございます。\n" year;;
  4. happy_new_year(Some 2018);;
Compilation error #stdin compilation error #stdout 0s 16096KB
stdin
Standard input is empty
compilation info
File "prog.ml", line 3, characters 76-80:
Error: This expression has type year = int option
       but an expression was expected of type int
stdout
Standard output is empty