From 417f6c86146ee1a72cff7838cdd5ff28c6773f61 Mon Sep 17 00:00:00 2001 From: Jean Privat Date: Fri, 3 Apr 2015 09:44:12 +0700 Subject: [PATCH] modelize_class: make the class-name-conflict a warning as an error, it prevents temporary duplication of same classes for development and experimentation. One do not want to have an hard error in a file because a random file in the same directory has issues. Signed-off-by: Jean Privat --- src/modelize/modelize_class.nit | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/modelize/modelize_class.nit b/src/modelize/modelize_class.nit index 632db85..5618c11 100644 --- a/src/modelize/modelize_class.nit +++ b/src/modelize/modelize_class.nit @@ -105,7 +105,7 @@ redef class ModelBuilder if other.intro_mmodule.mgroup != null and other.intro_mmodule.mgroup.mproject == mmodule.mgroup.mproject then # Skip classes that are buggy if other.try_intro == null then continue - error(nclassdef, "Error: A class named `{other.full_name}` is already defined in module `{other.intro_mmodule}` at {other.intro.location}.") + warning(nclassdef, "full-name-conflict", "Error: A class named `{other.full_name}` is already defined in module `{other.intro_mmodule}` at {other.intro.location}.") break end end -- 1.7.9.5