aboutsummaryrefslogtreecommitdiff
path: root/src/check_decl.cpp
diff options
context:
space:
mode:
authorAndreas T Jonsson <mail@andreasjonsson.se>2024-05-13 09:44:27 +0200
committerAndreas T Jonsson <mail@andreasjonsson.se>2024-05-13 09:44:27 +0200
commit3e181af4097fe1d4ee76d21843ad7719304b6140 (patch)
treef4f8e9025f839c8b18e7fe8977b9ef19de678dc0 /src/check_decl.cpp
parenta9b94f401934612824f05f6abbe28c0da95be9c8 (diff)
parent88528f76133304eeddd2f8046df304e25e6e98b1 (diff)
Merge branch 'netbsd' into netbsd-ci
Diffstat (limited to 'src/check_decl.cpp')
-rw-r--r--src/check_decl.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/check_decl.cpp b/src/check_decl.cpp
index 441c8000d..1ec366ae7 100644
--- a/src/check_decl.cpp
+++ b/src/check_decl.cpp
@@ -1619,7 +1619,7 @@ gb_internal bool check_proc_body(CheckerContext *ctx_, Token token, DeclInfo *de
if (e->kind != Entity_Variable) {
continue;
}
- if (is_type_polymorphic(e->type)) {
+ if (is_type_polymorphic(e->type) && is_type_polymorphic_record_unspecialized(e->type)) {
gbString s = type_to_string(e->type);
char const *msg = "Unspecialized polymorphic types are not allowed in procedure parameters, got %s";
if (e->Variable.type_expr) {