From a6bcb8216cb3b6fd9ff08fd24013fa7669784717 Mon Sep 17 00:00:00 2001 From: Jean Privat Date: Wed, 12 Feb 2014 09:31:31 -0500 Subject: [PATCH] rta: use `to_s_with_length` instead of `to_s` in literal strings This is more conform to the current nitg implementations. Signed-off-by: Jean Privat --- src/rapid_type_analysis.nit | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/rapid_type_analysis.nit b/src/rapid_type_analysis.nit index 3c32689..be9ea34 100644 --- 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 -- 1.7.9.5