Skip to content

Commit

Permalink
Updated TypeChecker.java, thanks to geektime user Geek_54edc1.
Browse files Browse the repository at this point in the history
  • Loading branch information
RichardGong committed Jan 16, 2020
1 parent 51dbabc commit 8cd3368
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion playscript-java/src/main/play/TypeChecker.java
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ public void exitVariableDeclarator(VariableDeclaratorContext ctx) {
if (ctx.variableInitializer() != null){
Variable variable = (Variable) at.symbolOfNode.get(ctx.variableDeclaratorId());
Type type1 = variable.type;
Type type2 = at.typeOfNode.get(ctx.variableDeclaratorId());
Type type2 = at.typeOfNode.get(ctx.variableInitializer());
checkAssign(type1,type2,ctx,ctx.variableDeclaratorId(),ctx.variableInitializer());
}
}
Expand Down

0 comments on commit 8cd3368

Please sign in to comment.