我使用 vscode,扩展名为“OCaml and Reason IDE”
这是我在 utop 中的结果:
utop # 1. = 1. ;;
Line 1, characters 0-2:
Error: This expression has type float but an expression was expected of type
int
也适用于字符串:
utop # "Me" = "Me";;
Line 1, characters 0-4:
Error: This expression has type string but an expression was expected of type
int
除了 int 之外的任何东西都一样:
utop # 2 = 2 ;;
- : bool = true
">" "<" 也有同样的症状。我不知道实际发生了什么。谁能帮我吗 ?非常感谢!