소스 검색

Merge pull request #2435 from Lperlind/master

Fix type comparison not accounting for parapoly params
gingerBill 2 년 전
부모
커밋
ae6e76bbb3
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  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;