type year = int optionlet happy_new_year(year: year) = Printf.printf "%d年あけましておめでとうございます。\n" year;;happy_new_year(Some 2018);;
Standard input is empty
File "prog.ml", line 3, characters 76-80: Error: This expression has type year = int option but an expression was expected of type int
Standard output is empty
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!