fix regression in test_issue_2395

This commit is contained in:
Laytan Laats
2024-06-07 16:33:38 +02:00
parent 9122c20d4b
commit 29250f2657
3 changed files with 3 additions and 6 deletions
+1 -1
View File
@@ -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;
}