Fix #3056
This commit is contained in:
1 parent
252fd0e928
commit
759e342872
1 file changed
+1
-1
@@ -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);
|
||||
|
||||
Reference in new issue
Block a user