소스 검색

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
 	let is_numeric t = match t with
 		| TAbstract({a_path=[],"Float"},_) -> true
 		| TAbstract({a_path=[],"Float"},_) -> true
 		| TAbstract({a_path=[],"Int"},_) -> true
 		| TAbstract({a_path=[],"Int"},_) -> true
-		| _ -> true
+		| _ -> false
 
 
 	let is_string t = match t with
 	let is_string t = match t with
 		| TInst({cl_path=[],"String"},_) -> true
 		| TInst({cl_path=[],"String"},_) -> true