This commit is contained in:
korvahkh
2023-12-29 22:39:34 -06:00
parent 252fd0e928
commit 759e342872

View File

@@ -3385,7 +3385,7 @@ gb_internal lbValue lb_build_call_expr_internal(lbProcedure *p, Ast *expr) {
}
lbValue arg = args[arg_index];
if (arg.value == nullptr) {
if (arg.value == nullptr && arg.type == nullptr) {
switch (e->kind) {
case Entity_TypeName:
args[arg_index] = lb_const_nil(p->module, e->type);