Explorar el Código

Fix type comparison not accounting for parapoly params

Lucas Perlind hace 2 años
padre
commit
08bc6a1698
Se han modificado 1 ficheros con 1 adiciones y 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;