MCPcopy Create free account
hub / github.com/NICUP14/MiniLang / args_compatible

Function args_compatible

src/Def.py:942–944  ·  view source on GitHub ↗
(tpl)

Source from the content-addressed store, hash-verified

940 return type_compatible(kind, ckind, ckind2)
941
942 def args_compatible(tpl) -> bool:
943 var_type1, var_type2 = tpl
944 return _args_compatible((NodeKind.FUN_CALL, var_type1.ckind, var_type2.ckind))
945
946 return all(map(args_compatible, zip(sig.arg_types, sig2.arg_types)))
947

Callers

nothing calls this directly

Calls 1

_args_compatibleFunction · 0.85

Tested by

no test coverage detected