| ... | @@ -6614,7 +6614,9 @@ fn zirParam( | ... | @@ -6614,7 +6614,9 @@ fn zirParam( |
| 6614 | // partial type for generic functions but we still need to | 6614 | // partial type for generic functions but we still need to |
| 6615 | // detect if a function parameter is a generic function | 6615 | // detect if a function parameter is a generic function |
| 6616 | // to force the parent function to also be generic. | 6616 | // to force the parent function to also be generic. |
| 6617 | break :err error.GenericPoison; | 6617 | if (!sema.inst_map.contains(inst)) { |
| | 6618 | break :err error.GenericPoison; |
| | 6619 | } |
| 6618 | } | 6620 | } |
| 6619 | break :param_ty param_ty; | 6621 | break :param_ty param_ty; |
| 6620 | } else |err| break :err err; | 6622 | } else |err| break :err err; |