Open dgsuarez opened 5 years ago
class Test def variables_used_later a = 3 b = a * 3 a * b end end
Applying extract method to the first 2 lines of the method results in:
class Test def variables_used_later b = extracted a * b end def extracted a = 3 a * 3 end end
a no longer exists in variables_used_later, but it tries to use it.
a
variables_used_later
Applying extract method to the first 2 lines of the method results in:
a
no longer exists invariables_used_later
, but it tries to use it.