aboutsummaryrefslogtreecommitdiff
path: root/src/check_type.cpp
diff options
context:
space:
mode:
authorLaytan Laats <laytanlaats@hotmail.com>2024-06-07 16:33:38 +0200
committerLaytan Laats <laytanlaats@hotmail.com>2024-06-07 16:33:38 +0200
commit29250f2657f644e766dba09dcffdf594f54554f5 (patch)
tree3d82659f1a68a9f0f7cc85a522e32c71476d3697 /src/check_type.cpp
parent9122c20d4b4e1d9fbd8833d47ceec164170a73f5 (diff)
fix regression in test_issue_2395
Diffstat (limited to 'src/check_type.cpp')
-rw-r--r--src/check_type.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/check_type.cpp b/src/check_type.cpp
index 17f7813d5..c56c8a739 100644
--- a/src/check_type.cpp
+++ b/src/check_type.cpp
@@ -776,7 +776,7 @@ gb_internal void check_union_type(CheckerContext *ctx, Type *union_type, Ast *no
}
}
if (variants.count < 2) {
- error(ut->align, "A union with #no_nil must have at least 2 variants");
+ error(node, "A union with #no_nil must have at least 2 variants");
}
break;
}