| ... | @@ -17612,9 +17612,8 @@ fn resolvePeerTypes( | ... | @@ -17612,9 +17612,8 @@ fn resolvePeerTypes( |
| 17612 | var chosen = instructions[0]; | 17612 | var chosen = instructions[0]; |
| 17613 | var err_set_ty: ?Type = blk: { | 17613 | var err_set_ty: ?Type = blk: { |
| 17614 | const chosen_ty = sema.typeOf(chosen); | 17614 | const chosen_ty = sema.typeOf(chosen); |
| 17615 | | 17615 | const chosen_ty_tag = try chosen_ty.zigTypeTagOrPoison(); |
| 17616 | // TODO: is this the right handling of generic poison? | 17616 | if (chosen_ty_tag != .ErrorSet) |
| 17617 | if (chosen_ty.tag() == .generic_poison or chosen_ty.zigTypeTag() != .ErrorSet) | | |
| 17618 | break :blk null; | 17617 | break :blk null; |
| 17619 | | 17618 | |
| 17620 | // If our chosen type is inferred, we have to resolve it now. | 17619 | // If our chosen type is inferred, we have to resolve it now. |