{"action":"created","issue":{"url":"https://api.github.com/repos/gracelang/minigrace/issues/186","repository_url":"https://api.github.com/repos/gracelang/minigrace","labels_url":"https://api.github.com/repos/gracelang/minigrace/issues/186/labels{/name}","comments_url":"https://api.github.com/repos/gracelang/minigrace/issues/186/comments","events_url":"https://api.github.com/repos/gracelang/minigrace/issues/186/events","html_url":"https://github.com/gracelang/minigrace/issues/186","id":164964801,"number":186,"title":"Objects within a class cannot modify fields","user":{"login":"petercowal","id":10791374,"avatar_url":"https://avatars.githubusercontent.com/u/10791374?v=3","gravatar_id":"","url":"https://api.github.com/users/petercowal","html_url":"https://github.com/petercowal","followers_url":"https://api.github.com/users/petercowal/followers","following_url":"https://api.github.com/users/petercowal/following{/other_user}","gists_url":"https://api.github.com/users/petercowal/gists{/gist_id}","starred_url":"https://api.github.com/users/petercowal/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/petercowal/subscriptions","organizations_url":"https://api.github.com/users/petercowal/orgs","repos_url":"https://api.github.com/users/petercowal/repos","events_url":"https://api.github.com/users/petercowal/events{/privacy}","received_events_url":"https://api.github.com/users/petercowal/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2016-07-11T23:49:19Z","updated_at":"2016-07-20T10:39:45Z","closed_at":null,"body":"```\r\nclass foo{\r\n    var i := 1\r\n    def adder = object {\r\n        method add {\r\n            i := i + 1\r\n        }\r\n    }\r\n    method add {\r\n        adder.add\r\n    }\r\n}\r\ndef bar = foo\r\nbar.add\r\n```\r\nresults in the error\r\n```\r\nNoSuchMethod at line 5 of scopeTest: requested confidential method 'i:=(1)' (defined at scopeTest:2) from outside.\r\n  called from foo.i:=(1) (defined at scopeTest:2 in foo created at scopeTest:1) at scopeTest:5\r\n  called from adder.add (defined at scopeTest:4 in adder created at scopeTest:3) at scopeTest:9\r\n  called from foo.add (defined at scopeTest:8 in foo created at scopeTest:1) at scopeTest:13\r\n    4:         method add {\r\n    5:             i := i + 1\r\n    6:         }\r\n```\r\n\r\nThis error appears to be exclusive to the betterNames branch.  Note that minigrace *doesn't* complain when *reading* from a class variable, only when trying to write."},"comment":{"url":"https://api.github.com/repos/gracelang/minigrace/issues/comments/233914460","html_url":"https://github.com/gracelang/minigrace/issues/186#issuecomment-233914460","issue_url":"https://api.github.com/repos/gracelang/minigrace/issues/186","id":233914460,"user":{"login":"apblack","id":410893,"avatar_url":"https://avatars.githubusercontent.com/u/410893?v=3","gravatar_id":"","url":"https://api.github.com/users/apblack","html_url":"https://github.com/apblack","followers_url":"https://api.github.com/users/apblack/followers","following_url":"https://api.github.com/users/apblack/following{/other_user}","gists_url":"https://api.github.com/users/apblack/gists{/gist_id}","starred_url":"https://api.github.com/users/apblack/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/apblack/subscriptions","organizations_url":"https://api.github.com/users/apblack/orgs","repos_url":"https://api.github.com/users/apblack/repos","events_url":"https://api.github.com/users/apblack/events{/privacy}","received_events_url":"https://api.github.com/users/apblack/received_events","type":"User","site_admin":false},"created_at":"2016-07-20T10:39:45Z","updated_at":"2016-07-20T10:39:45Z","body":"Did you create a test?  Did you try this fix?"}}
{"actor":{"display_login":"apblack"}}