mirror of
https://github.com/ziglang/zig.git
synced 2026-01-07 14:03:26 +00:00
Sema: fix comptime call with generic function as parameter
This commit is contained in:
parent
99657dca1f
commit
ff7ef624f5
@ -6614,7 +6614,9 @@ fn zirParam(
|
||||
// partial type for generic functions but we still need to
|
||||
// detect if a function parameter is a generic function
|
||||
// to force the parent function to also be generic.
|
||||
break :err error.GenericPoison;
|
||||
if (!sema.inst_map.contains(inst)) {
|
||||
break :err error.GenericPoison;
|
||||
}
|
||||
}
|
||||
break :param_ty param_ty;
|
||||
} else |err| break :err err;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user