Browse Source

[overloads] add missing follow

see #10661
Simon Krajewski 3 years ago
parent
commit
6ec800b7a5
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/codegen/overloads.ml

+ 1 - 1
src/codegen/overloads.ml

@@ -13,7 +13,7 @@ let same_overload_args ?(get_vmtype) t1 t2 f1 f2 =
 			| [],[] ->
 			| [],[] ->
 				true
 				true
 			| tp1 :: params1,tp2 :: params2 ->
 			| tp1 :: params1,tp2 :: params2 ->
-				let constraints_equal t1 t2 = match follow t1,t2 with
+				let constraints_equal t1 t2 = match follow t1,follow t2 with
 					| TInst({cl_kind = KTypeParameter tl1},_),TInst({cl_kind = KTypeParameter tl2},_) ->
 					| TInst({cl_kind = KTypeParameter tl1},_),TInst({cl_kind = KTypeParameter tl2},_) ->
 						Ast.safe_for_all2 f_eq tl1 tl2
 						Ast.safe_for_all2 f_eq tl1 tl2
 					| _ ->
 					| _ ->