Skip to content

Commit 194f7dd

Browse files
committed
Minor Fix
1 parent 8f2142f commit 194f7dd

File tree

1 file changed

+3
-3
lines changed
  • liquidjava-verifier/src/main/java/liquidjava/rj_language/ast

1 file changed

+3
-3
lines changed

liquidjava-verifier/src/main/java/liquidjava/rj_language/ast/Expression.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -180,9 +180,9 @@ public Expression changeAlias(Map<String, AliasDTO> alias, Context ctx, Factory
180180
String varType = dto.getVarTypes().get(i);
181181
Expression aliasExp = children.get(i);
182182

183-
boolean checks = TypeInfer.checkCompatibleType(varType, aliasExp, ctx, f);
184-
if (!checks)
185-
throw new Exception("Type Mismatch: Cannoy substitute " + aliasExp + " : "
183+
boolean compatible = TypeInfer.checkCompatibleType(varType, aliasExp, ctx, f);
184+
if (!compatible)
185+
throw new Exception("Type Mismatch: Cannot substitute " + aliasExp + " : "
186186
+ TypeInfer.getType(ctx, f, aliasExp).get().getQualifiedName() + " by " + varExp + " : "
187187
+ TypeInfer.getType(ctx, f, varExp).get().getQualifiedName());
188188

0 commit comments

Comments
 (0)