尝试编译以下表达式时: String.blit (String.make tfs.len ' ') 0 tfs.txt 0 tfs.len; 编译器报告以下错误: Error: This expressionhas type string but an expression was expected of type bytes
and the variable 'tfs.txt' (of type string根
我正在使用bs-material-ui-icon绑定,但是当我尝试使用它的组件时,我得到了类型错误。<MaterialUIIcons.AccessAlarm /> </div>; /** <MaterialUIIcons.AccessAlarm /> erorr **/}; 下面是它给出的错误消息ReasonReact.actionless)
is not compatible with typ
我想实现 函数使用 ,这是我尝试过的: let rec assoc lista x = match lista with | (a,b)::ltry (List.find (fun x -> a = x) lista) with Not_found -> assoc l x;; 但是它给了我这个错误: 此表达式的类型为('a * 'b