From: Jean Privat Date: Thu, 16 Apr 2015 16:32:54 +0000 (+0700) Subject: rta: visit implicit methods of literal arrays X-Git-Tag: v0.7.4~18^2~3 X-Git-Url: http://nitlanguage.org rta: visit implicit methods of literal arrays Signed-off-by: Jean Privat --- diff --git a/src/rapid_type_analysis.nit b/src/rapid_type_analysis.nit index 3f81bf8..81e14fa 100644 --- a/src/rapid_type_analysis.nit +++ b/src/rapid_type_analysis.nit @@ -540,6 +540,8 @@ redef class AArrayExpr mtype = v.cleanup_type(mtype).as(not null) var prop = v.get_method(mtype, "with_native") v.add_monomorphic_send(mtype, prop) + v.add_callsite(with_capacity_callsite) + v.add_callsite(push_callsite) end end