【发布时间】:2015-11-29 13:37:52
【问题描述】:
let confere_tipo msg tinf tdec =
if tinf <> tdec
then failwith (msg ^ " deve ser do tipo " ^ tinf)
File "semantico.ml", line 50, characters 0-3:
Error: Syntax error
我做错了什么?
【问题讨论】:
-
这个函数单独编译很好。您可能在定义之前有一个错误。请尝试找到重现错误所需的最少代码并使用该代码编辑您的帖子(以及任何其他有用的信息,例如您的 OCaml 版本)。
-
我确认@Marth 的评论,该函数也在我的机器上编译。
标签: ocaml