When I executed the following commands in the interaction environment (either OCaml
or utop
), all the expressions of "int" type turned out to be "int/2" type. This behaviour can be replicated as follow.
# 3;;
- : int = 3
# type int;;
type int
# type a;;
type a
# 3;;
- : int/2 = 3
Does anyone have any idea why this happens? Thanks!
Edit on Mar 2 2020:
I found that the "int/2" won't appear if I do the following. Can anyone please explain what happened here?
# 3;;
- : int = 3
# type int;;
type int
# 3;;
- : int = 3
Update: OCaml version 4.08.1 was used in the above cases.