aboutsummaryrefslogtreecommitdiff
path: root/src/types.cpp
diff options
context:
space:
mode:
authorLucas Perlind <perlindluca@gmail.com>2023-04-03 12:41:00 +1000
committerLucas Perlind <perlindluca@gmail.com>2023-04-03 12:47:28 +1000
commit08bc6a1698c4c63c95a0e3452f81b7d713e20280 (patch)
treedd4c93434bf8738324514b70f7676c7615364c1c /src/types.cpp
parent22e0f5ecd03fbf06428ae002a31ce7851d0356f6 (diff)
Fix type comparison not accounting for parapoly params
Diffstat (limited to 'src/types.cpp')
-rw-r--r--src/types.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/types.cpp b/src/types.cpp
index ee610a2ce..5addb5b7b 100644
--- a/src/types.cpp
+++ b/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;