Skip to content

Support accessing instance variables & self from the outside of a block or closure #57

Description

@spencergibb

see issue #0 here http://groups.google.com/group/mirah/browse_thread/thread/9037d2ac8db02e47/591fd73142139862

and here
http://groups.google.com/group/mirah/browse_thread/thread/595ff2dae2dc2fc2

eg:

class Foo 
def bar 
@a = 10 
Thread.new { puts @a }.start 
end 
end 
Foo.new.bar 
Inference Error: 
foo.mirah:4: Unable to infer type. 
Thread.new{ puts @a }.start 
^^^ 

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions