diff --git a/ruby/lib/lox/resolver.rb b/ruby/lib/lox/resolver.rb index d2d48f4..ad60f21 100644 --- a/ruby/lib/lox/resolver.rb +++ b/ruby/lib/lox/resolver.rb @@ -38,6 +38,12 @@ module Lox nil end + def visit_assign(expr) + resolve(expr.value) + resolve_local(expr, expr.name) + nil + end + private def with_block