Explorar o código

fix Type.is_numeric

Aleksandr Kuzmenko %!s(int64=6) %!d(string=hai) anos
pai
achega
feff46c370
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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