I wrote a simple file, like this
type weeks = Mon | Tue | Wed | Thu | Fri | Sat | Sun let day_of_week w = match w with | Mon -> 1 | Tue -> 2 | Wed -> 3 | Thu -> 4 | Fri -> 5 | Sat -> 6 | Sun -> 7 print_int (day_of_week Fri)
show me this message when compile it
I type the same code in
utop is working normal.
And i change a little bit of code, it’s also done. like this
...... | Sun -> 7;; .......
Following 2 pics is message on
help me plz.