Closed alex closed 11 years ago
Found it, the cause is the difference between lexical_scope
and w_scope
in instance_eval
. Not yet sure what the correct fix is:
module M
C = proc {
class X
end
X
}
end
class T
end
t = T.new
t.instance_eval(&M::C)
@timfel do you have a sense of what the correct fix (I'm thinking part of it will be to unify lexical_scope and w_scope)? This is blocking a ton of specs, so I want to make it my number one priority.
Fixed wtih the scope-cleanup branch.
I'm not sure what the underlying cause is, but inside of rubyspec, any spec which defines a class, looking up that class doesn't work.