From: Alexandre Terrasa Date: Thu, 21 May 2015 21:27:37 +0000 (-0400) Subject: lib/json: remove useless types X-Git-Tag: v0.7.5~14^2~1 X-Git-Url: http://nitlanguage.org lib/json: remove useless types Signed-off-by: Alexandre Terrasa --- diff --git a/lib/json/dynamic.nit b/lib/json/dynamic.nit index d0559e0..594aac6 100644 --- a/lib/json/dynamic.nit +++ b/lib/json/dynamic.nit @@ -131,8 +131,7 @@ class JsonValue # assert "123".to_json_value.to_s == "123" # assert "true".to_json_value.to_s == "true" # assert "[1, 2, 3]".to_json_value.to_s == "123" - redef fun to_s: String - do + redef fun to_s do if value == null then return "null" return value.to_s end