{"action":"created","issue":{"url":"https://api.github.com/repos/dart-lang/linter/issues/254","repository_url":"https://api.github.com/repos/dart-lang/linter","labels_url":"https://api.github.com/repos/dart-lang/linter/issues/254/labels{/name}","comments_url":"https://api.github.com/repos/dart-lang/linter/issues/254/comments","events_url":"https://api.github.com/repos/dart-lang/linter/issues/254/events","html_url":"https://github.com/dart-lang/linter/issues/254","id":157959173,"number":254,"title":"@protected should allow same-file access","user":{"login":"Hixie","id":551196,"avatar_url":"https://avatars.githubusercontent.com/u/551196?v=3","gravatar_id":"","url":"https://api.github.com/users/Hixie","html_url":"https://github.com/Hixie","followers_url":"https://api.github.com/users/Hixie/followers","following_url":"https://api.github.com/users/Hixie/following{/other_user}","gists_url":"https://api.github.com/users/Hixie/gists{/gist_id}","starred_url":"https://api.github.com/users/Hixie/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Hixie/subscriptions","organizations_url":"https://api.github.com/users/Hixie/orgs","repos_url":"https://api.github.com/users/Hixie/repos","events_url":"https://api.github.com/users/Hixie/events{/privacy}","received_events_url":"https://api.github.com/users/Hixie/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2016-06-01T17:07:37Z","updated_at":"2016-06-03T14:19:47Z","closed_at":null,"body":"Right now @protected is actually stricter than _private, in that it even disallows same-file access. I'd be totally ok with @strictProtected and @strictPrivate modifiers that prevent access from outside the class entirely, but I think the @protected annotation should default to being a superset of _private, i.e. only additionally allowing access from outside the file to subclasses."},"comment":{"url":"https://api.github.com/repos/dart-lang/linter/issues/comments/223591562","html_url":"https://github.com/dart-lang/linter/issues/254#issuecomment-223591562","issue_url":"https://api.github.com/repos/dart-lang/linter/issues/254","id":223591562,"user":{"login":"pq","id":67586,"avatar_url":"https://avatars.githubusercontent.com/u/67586?v=3","gravatar_id":"","url":"https://api.github.com/users/pq","html_url":"https://github.com/pq","followers_url":"https://api.github.com/users/pq/followers","following_url":"https://api.github.com/users/pq/following{/other_user}","gists_url":"https://api.github.com/users/pq/gists{/gist_id}","starred_url":"https://api.github.com/users/pq/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pq/subscriptions","organizations_url":"https://api.github.com/users/pq/orgs","repos_url":"https://api.github.com/users/pq/repos","events_url":"https://api.github.com/users/pq/events{/privacy}","received_events_url":"https://api.github.com/users/pq/received_events","type":"User","site_admin":false},"created_at":"2016-06-03T14:19:47Z","updated_at":"2016-06-03T14:19:47Z","body":"> I now get a warning because I try to access a protected field in the same class \r\n\r\n@zoechi is this with the latest dev build or HEAD?  I *think* have a test for this but to be sure maybe you could share a repro?\r\n\r\nAs always, thanks!"}}
{"actor":{"display_login":"pq"}}