fix regression in test_issue_2395
This commit is contained in:
1 parent
9122c20d4b
commit
29250f2657
3 files changed
+3
-6
No files matched your search
+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