# Internally, implement internal function
var nitni_visitor = v.compiler.new_visitor
nitni_visitor.frame = v.frame
- var msignature = mproperty.intro.msignature
+ var msignature = mproperty.lookup_first_definition(v.compiler.mainmodule, recv_mtype).msignature
var csignature_blind = mproperty.build_csignature(recv_mtype, v.compiler.mainmodule, null, long_signature, internal_call_context)
nitni_visitor.add_decl("/* nitni callback for {mproperty.full_name} */")
# Internally, implement internal function
var nitni_visitor = v.compiler.new_visitor
nitni_visitor.frame = v.frame
- var msignature = mproperty.intro.msignature
+ var msignature = mproperty.lookup_first_definition(v.compiler.mainmodule, mclass_type).msignature
var csignature_blind = mproperty.build_csignature(mclass_type, v.compiler.mainmodule, "___super", long_signature, internal_call_context)
# * The `call_context` identifying which types and casts to use (see `CallContext` and its instances)
fun build_csignature(recv_mtype: MClassType, from_mmodule: MModule, suffix: nullable String, length: SignatureLength, call_context: CallContext): String
do
- var signature = self.intro.msignature
+ var mmethoddef = lookup_first_definition(from_mmodule, recv_mtype)
+ var signature = mmethoddef.msignature
assert signature != null
var creturn_type
do
if param_suffix == null then param_suffix = ""
- var signature = self.intro.msignature
+ var mmethoddef = lookup_first_definition(from_mmodule, recv_mtype)
+ var signature = mmethoddef.msignature
assert signature != null
var return_mtype = null