nitc :: NaiveInterpreter :: send_commons
# Common code for runtime injected calls and normal calls
fun send_commons(mproperty: MMethod, args: Array[Instance], mtype: MType): nullable Instance
do
if mtype isa MNullType then
if mproperty.name == "==" or mproperty.name == "is_same_instance" then
return self.bool_instance(args[0] == args[1])
else if mproperty.name == "!=" then
return self.bool_instance(args[0] != args[1])
end
#fatal("Receiver is null. {mproperty}. {args.join(" ")} {self.frame.current_node.class_name}")
fatal("Receiver is null")
end
return null
end
src/interpreter/naive_interpreter.nit:598,2--611,4