From c81b2143e636beebd211fc402e811e574cd4c4c0 Mon Sep 17 00:00:00 2001 From: Jean Privat Date: Thu, 16 Apr 2015 23:32:54 +0700 Subject: [PATCH] rta: visit implicit methods of literal arrays Signed-off-by: Jean Privat --- src/rapid_type_analysis.nit | 2 ++ 1 file changed, 2 insertions(+) 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 -- 1.7.9.5