Hashtbl.hash is not compatible with (=) #5222
Original bug ID: 5222
Hashtbl.hash x associates a positive integer to any value of any type. It is guaranteed that if x = y or Pervasives.compare x y = 0, then hash x = hash y.
Hashtbl.hash (+0.) ;;
Hashtbl.hash (-0.) ;;
(+0.) = (-0.) ;;
The text was updated successfully, but these errors were encountered: