浏览代码

fix Type.is_numeric

Aleksandr Kuzmenko 6 年之前
父节点
当前提交
feff46c370
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      src/core/type.ml

+ 1 - 1
src/core/type.ml

@@ -2839,7 +2839,7 @@ module ExtType = struct
 	let is_numeric t = match t with
 		| TAbstract({a_path=[],"Float"},_) -> true
 		| TAbstract({a_path=[],"Int"},_) -> true
-		| _ -> true
+		| _ -> false
 
 	let is_string t = match t with
 		| TInst({cl_path=[],"String"},_) -> true