main
Sandy Brownlee 2 years ago
parent d12fc63571
commit afc2b3e760
  1. 2
      Triangle.Compiler/src/main/java/triangle/contextualAnalyzer/Checker.java

@ -204,7 +204,7 @@ public final class Checker implements ActualParameterVisitor<FormalParameter, Vo
var binding = ast.O.visit(this); var binding = ast.O.visit(this);
if (binding instanceof BinaryOperatorDeclaration bbinding) { if (binding instanceof BinaryOperatorDeclaration bbinding) {
if (bbinding.ARG1.equals(StdEnvironment.anyType)) { if (bbinding.ARG1 == StdEnvironment.anyType) {
// this operator must be "=" or "\=" // this operator must be "=" or "\="
checkAndReportError(e1Type.equals(e2Type), "incompatible argument types for \"%\"", ast.O, ast); checkAndReportError(e1Type.equals(e2Type), "incompatible argument types for \"%\"", ast.O, ast);
} else { } else {