Simon Krajewski %!s(int64=11) %!d(string=hai) anos
pai
achega
f772997537
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      type.ml

+ 1 - 1
type.ml

@@ -1617,7 +1617,7 @@ module Abstract = struct
 	let find_from ab pl a b =
 		if follow a == t_dynamic then
 			List.find (fun (t,_) -> follow t == t_dynamic) ab.a_from_field
-		else if List.exists (unify_from ab pl a ~allow_transitive_cast:false b) ab.a_to then
+		else if List.exists (unify_from ab pl a ~allow_transitive_cast:false b) ab.a_from then
 			raise Not_found (* legacy compatibility *)
 		else
 			List.find (unify_from_field ab pl a b) ab.a_from_field