aboutsummaryrefslogtreecommitdiff
path: root/src/check_type.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/check_type.cpp')
-rw-r--r--src/check_type.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/check_type.cpp b/src/check_type.cpp
index 555b54e78..6cd982bcb 100644
--- a/src/check_type.cpp
+++ b/src/check_type.cpp
@@ -715,6 +715,7 @@ void check_union_type(CheckerContext *ctx, Type *union_type, Ast *node, Array<Op
}
union_type->Union.variants = variants;
+ union_type->Union.no_nil = ut->no_nil;
if (ut->align != nullptr) {
i64 custom_align = 1;