rta: visit implicit methods of literal arrays
authorJean Privat <jean@pryen.org>
Thu, 16 Apr 2015 16:32:54 +0000 (23:32 +0700)
committerJean Privat <jean@pryen.org>
Thu, 16 Apr 2015 16:34:47 +0000 (23:34 +0700)
Signed-off-by: Jean Privat <jean@pryen.org>

src/rapid_type_analysis.nit

index 3f81bf8..81e14fa 100644 (file)
@@ -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