nitlanguage
/
nit.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a5b90ac
)
rta: visit implicit methods of literal arrays
author
Jean Privat
<jean@pryen.org>
Thu, 16 Apr 2015 16:32:54 +0000
(23:32 +0700)
committer
Jean 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
patch
|
blob
|
history
diff --git
a/src/rapid_type_analysis.nit
b/src/rapid_type_analysis.nit
index
3f81bf8
..
81e14fa
100644
(file)
--- 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