We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c03cd70 commit 3d918b3Copy full SHA for 3d918b3
src/ir/ast.py
@@ -659,8 +659,16 @@ def get_callable_functions(self, class_decls) -> Set[FunctionDeclaration]:
659
new_p.param_type = types.substitute_type(p.get_type(),
660
type_var_map)
661
params.append(new_p)
662
+ type_params = []
663
+ for t_param in f.type_parameters:
664
+ new_tparam = deepcopy(t_param)
665
+ if new_tparam.bound:
666
+ new_tparam.bound = types.substitute_type(t_param.bound,
667
+ type_var_map)
668
+ type_params.append(new_tparam)
669
ret_type = types.substitute_type(f.get_type(),
670
671
+ new_f.type_parameters = type_params
672
new_f.params = params
673
new_f.inferred_type = ret_type
674
new_f.ret_type = ret_type
0 commit comments