Explorar el Código

Fix typo in semanticAnalyser

Lucas de Souza hace 5 años
padre
commit
7351aa1d28
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      js/processor/semantic/semanticAnalyser.js

+ 1 - 1
js/processor/semantic/semanticAnalyser.js

@@ -251,7 +251,7 @@ export class SemanticAnalyser {
             } else {
               throw ProcessorErrorFactory.vector_line_outbounds_full(id, literal.value.length, lines.values.toNumber(), literal.sourceInfo)
             }
-          } else if (line.value.isNeg()) {
+          } else if (lines.value.isNeg()) {
             throw ProcessorErrorFactory.array_dimension_not_positive_full(literal.sourceInfo);
           }