aboutsummaryrefslogtreecommitdiff
path: root/src/check_type.cpp
diff options
context:
space:
mode:
authorgingerBill <bill@gingerbill.org>2019-07-09 10:28:13 +0100
committergingerBill <bill@gingerbill.org>2019-07-09 10:28:13 +0100
commit4ab9edeb53559f6ab6ef39a5ad9b45564d22aa8e (patch)
tree02ece312f83cfb4e5b3873d88b64950369c883e0 /src/check_type.cpp
parentc5b3d7a73640b3d3cbf3309cc2e61790a4901da6 (diff)
union #no_nil
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;