aboutsummaryrefslogtreecommitdiff
path: root/src/check_builtin.cpp
diff options
context:
space:
mode:
authorgingerBill <gingerBill@users.noreply.github.com>2025-02-07 07:53:47 +0000
committergingerBill <gingerBill@users.noreply.github.com>2025-02-07 07:53:47 +0000
commit58c4f13c82d57004634201562a3d334cfccf5caf (patch)
tree5be4b95625abd4bcbc5e75dfe067e8c6ebd7599c /src/check_builtin.cpp
parent4667a19e77426b84b357ce410f8baf9ba09f7683 (diff)
parent667ddc19076b118f844eff831c9cbe840918208b (diff)
Merge branch 'master' into bill/sdl3
Diffstat (limited to 'src/check_builtin.cpp')
-rw-r--r--src/check_builtin.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/check_builtin.cpp b/src/check_builtin.cpp
index ea902387b..7d0ce3aef 100644
--- a/src/check_builtin.cpp
+++ b/src/check_builtin.cpp
@@ -5544,6 +5544,9 @@ gb_internal bool check_builtin_procedure(CheckerContext *c, Operand *operand, As
// NOTE(bill): Is this even correct?
new_type->Union.node = operand->expr;
new_type->Union.scope = bt->Union.scope;
+ if (bt->Union.kind == UnionType_no_nil) {
+ new_type->Union.kind = UnionType_no_nil;
+ }
operand->type = new_type;
}