Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fixupAndAssert in inflateRawTypes is used to assert that a Type value has a certain concrete type. The only use is validating that Func.Type is a FuncProto so that a later check of Func.Type can type assert without error checking. This is a bad idea since understanding why the assertion is safe now requires understanding how types are inflated. Remove fixupAndAssert and instead check for errors during the type assertion. Signed-off-by: Lorenz Bauer <lmb@isovalent.com>
- Loading branch information