authorgravatar for andrew@ziglang.orgAndrew Kelley <andrew@ziglang.org> 2022-04-12 12:19:32-07:00
committergravatar for andrew@ziglang.orgAndrew Kelley <andrew@ziglang.org> 2022-04-12 12:19:32-07:00
logff7ef624f50824943a04dc4505c5313a4f9eae86
treeb01e9351b7b400db2b5a28d0c753e5a26d45d810
parent99657dca1fac04e5015203699e3eb0d656d66b09

Sema: fix comptime call with generic function as parameter


1 files changed, 3 insertions(+), 1 deletions(-)

src/Sema.zig+3-1
...@@ -6614,7 +6614,9 @@ fn zirParam(...@@ -6614,7 +6614,9 @@ fn zirParam(
6614 // partial type for generic functions but we still need to6614 // partial type for generic functions but we still need to
6615 // detect if a function parameter is a generic function6615 // 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;