fix peer type resolution with null

This commit is contained in:
Andrew Kelley
2019-06-26 00:36:24 -04:00
parent fd4c5f54f0
commit b4e40cb59a
2 changed files with 15 additions and 0 deletions

View File

@@ -10399,6 +10399,7 @@ static ZigType *ir_resolve_peer_types(IrAnalyze *ira, AstNode *source_node, ZigT
if (prev_type->id == ZigTypeIdNull) {
prev_inst = cur_inst;
any_are_null = true;
continue;
}