Skip to content

9k has different scoping behavior than MRI #3010

@zachpendleton

Description

@zachpendleton

Issue w/ test available here: https://gist.github.com/zachpendleton/e7f1352f4bd079daf288

If attr_accessor is called inside a protected or private method, the instance variables inherit the protected or private scope in 9k, but in MRI they inherit the scope of the call site.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions