From cbfdc810f0144e5aafceb1441aad3934558d95d7 Mon Sep 17 00:00:00 2001 From: Jean Privat Date: Mon, 13 Jul 2015 11:38:19 -0400 Subject: [PATCH] src/location: use `nosuper in some specific named constructors Signed-off-by: Jean Privat --- src/location.nit | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/location.nit b/src/location.nit index 108cf28..786ffc2 100644 --- a/src/location.nit +++ b/src/location.nit @@ -35,7 +35,8 @@ class SourceFile end # Create a new sourcefile using a dummy filename and a given content - init from_string(filename: String, string: String) + init from_string(filename: String, string: String) is + nosuper do self.filename = filename self.string = string @@ -99,7 +100,9 @@ class Location # loc = new Location.from_string("location.nit:82--105,8") # assert loc.to_s == "location.nit:82,0--105,8" # ~~~ - init from_string(string: String) do + init from_string(string: String) is + nosuper + do self.line_start = 0 self.line_end = 0 self.column_start = 0 -- 1.7.9.5