nitlanguage
/
nit.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
rta: use `to_s_with_length` instead of `to_s` in literal strings
[nit.git]
/
src
/
rapid_type_analysis.nit
diff --git
a/src/rapid_type_analysis.nit
b/src/rapid_type_analysis.nit
index
3c32689
..
be9ea34
100644
(file)
--- a/
src/rapid_type_analysis.nit
+++ b/
src/rapid_type_analysis.nit
@@
-428,7
+428,7
@@
redef class AStringFormExpr
do
var native = v.get_class("NativeString").mclass_type
v.add_type(native)
- var prop = v.get_method(native, "to_s")
+ var prop = v.get_method(native, "to_s_with_length")
v.add_monomorphic_send(native, prop)
end
end