Explorar o código

Merge pull request #2435 from Lperlind/master

Fix type comparison not accounting for parapoly params
gingerBill %!s(int64=2) %!d(string=hai) anos
pai
achega
ae6e76bbb3
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      src/types.cpp

+ 1 - 1
src/types.cpp

@@ -2683,7 +2683,7 @@ gb_internal bool are_types_identical_internal(Type *x, Type *y, bool check_tuple
 					return false;
 				}
 			}
-			return true;
+			return are_types_identical(x->Struct.polymorphic_params, y->Struct.polymorphic_params);
 		}
 		break;