Nicolas Cannasse 13 年之前
父节点
当前提交
b59ee7b42b
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      typeload.ml

+ 1 - 1
typeload.ml

@@ -939,7 +939,7 @@ let init_class ctx c p herits fields =
 						| TPType t -> lookup_type t
 						| TPExpr _ -> false
 					in
-					if lookup_fun { fd with f_type = None; f_params = [] } && not (has_meta ":allowConstrainst" f.cff_meta) then error "This notation is not allowed because it can't be checked" p);
+					if lookup_fun { fd with f_type = None; f_params = [] } && not (has_meta ":allowConstraint" f.cff_meta) then error "This notation is not allowed because it can't be checked" p);
 				type_type_params ctx ([],name) (fun() -> !params) p (n,flags)
 			) fd.f_params;
 			let params = !params in