Redeclaration stage of Build Your Own Interpreter (#DW9) has a test case for assignment

I was going through the course and ran into this failing test case which uses assignment in Lox. This stage handles only redeclarations while assignments are not handled until the next stage.

var quz = 2;
print quz;
quz = 3;
print quz;
var world = 5;
print world;
quz = world;
print quz;

Thanks! :grin:

Thanks for highlighting this!

Our team will fix the test cases by tomorrow, and I’ll update you as soon as it’s done.

1 Like

We’ve just updated both the stage instructions and the tester, properly (re)declaring variables using the var keyword.

This topic was automatically closed 5 days after the last reply. New replies are no longer allowed.