]> gerrit.simantics Code Review - simantics/platform.git/commitdiff
(refs #7141) Converted an error to a warning 14/414/1
authorHannu Niemistö <hannu.niemisto@iki.fi>
Mon, 17 Apr 2017 05:27:50 +0000 (08:27 +0300)
committerHannu Niemistö <hannu.niemisto@iki.fi>
Mon, 17 Apr 2017 05:27:50 +0000 (08:27 +0300)
Change-Id: I8b29ed7d532a8c7ec09622a3e0fa55f925737bdc

bundles/org.simantics.scl.compiler/src/org/simantics/scl/compiler/compilation/TypeChecking.java

index b8d959e197b65dd56b9fc23dd9a9a521a0be0857..58bb98a417e0d9255e77310c74d5f6feb6c8430a 100644 (file)
@@ -225,7 +225,7 @@ public class TypeChecking {
                                 if(compilationContext.errorLog.getErrorCount() != errorCountBeforeTypeChecking) {
                                     int typeArity = Types.getArity(type); 
                                     if(typeArity != functionArity)
-                                        compilationContext.errorLog.log(value.definitionLocation, "Possible problem: type declaration has " + typeArity + " parameter types, but function definition has " + functionArity + " parameters.");
+                                        compilationContext.errorLog.logWarning(value.definitionLocation, "Possible problem: type declaration has " + typeArity + " parameter types, but function definition has " + functionArity + " parameters.");
                                 }
                                 
                                 ArrayList<EVariable> demands = context.getConstraintDemand();