mirror of
https://github.com/Ed94/Odin.git
synced 2026-06-14 18:02:22 -07:00
fix regression in test_issue_2395
This commit is contained in:
+1
-1
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user