{"action":"created","issue":{"url":"https://api.github.com/repos/facebook/flow/issues/563","labels_url":"https://api.github.com/repos/facebook/flow/issues/563/labels{/name}","comments_url":"https://api.github.com/repos/facebook/flow/issues/563/comments","events_url":"https://api.github.com/repos/facebook/flow/issues/563/events","html_url":"https://github.com/facebook/flow/issues/563","id":91039463,"number":563,"title":"Underscore starting fields not inherited (bug or undocumented feature?)","user":{"login":"runn1ng","id":104945,"avatar_url":"https://avatars.githubusercontent.com/u/104945?v=3","gravatar_id":"","url":"https://api.github.com/users/runn1ng","html_url":"https://github.com/runn1ng","followers_url":"https://api.github.com/users/runn1ng/followers","following_url":"https://api.github.com/users/runn1ng/following{/other_user}","gists_url":"https://api.github.com/users/runn1ng/gists{/gist_id}","starred_url":"https://api.github.com/users/runn1ng/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/runn1ng/subscriptions","organizations_url":"https://api.github.com/users/runn1ng/orgs","repos_url":"https://api.github.com/users/runn1ng/repos","events_url":"https://api.github.com/users/runn1ng/events{/privacy}","received_events_url":"https://api.github.com/users/runn1ng/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":9,"created_at":"2015-06-25T18:22:43Z","updated_at":"2015-10-27T00:48:08Z","closed_at":"2015-10-22T00:21:53Z","body":"When a class field starts with an underscore, it's not inherited further. Example:\r\n\r\n    class Foo {\r\n        _value: number;\r\n    }\r\n    \r\n    class Bar extends Foo {\r\n        tellValue(): number {\r\n            return this._value; \r\n        }\r\n    }\r\n\r\nDoesn't typecheck. The same code looking like this typechecks:\r\n\r\n    class Foo {\r\n        value: number;\r\n    }\r\n    \r\n    class Bar extends Foo {\r\n        tellValue(): number {\r\n            return this.value; \r\n        }\r\n    }\r\n\r\nIt might be a feature, since underscore fields are usually taken as \"private\" (in Java terms). However I don't see this feature documented anywhere."},"comment":{"url":"https://api.github.com/repos/facebook/flow/issues/comments/151327526","html_url":"https://github.com/facebook/flow/issues/563#issuecomment-151327526","issue_url":"https://api.github.com/repos/facebook/flow/issues/563","id":151327526,"user":{"login":"runn1ng","id":104945,"avatar_url":"https://avatars.githubusercontent.com/u/104945?v=3","gravatar_id":"","url":"https://api.github.com/users/runn1ng","html_url":"https://github.com/runn1ng","followers_url":"https://api.github.com/users/runn1ng/followers","following_url":"https://api.github.com/users/runn1ng/following{/other_user}","gists_url":"https://api.github.com/users/runn1ng/gists{/gist_id}","starred_url":"https://api.github.com/users/runn1ng/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/runn1ng/subscriptions","organizations_url":"https://api.github.com/users/runn1ng/orgs","repos_url":"https://api.github.com/users/runn1ng/repos","events_url":"https://api.github.com/users/runn1ng/events{/privacy}","received_events_url":"https://api.github.com/users/runn1ng/received_events","type":"User","site_admin":false},"created_at":"2015-10-27T00:48:08Z","updated_at":"2015-10-27T00:48:08Z","body":"I actually started to like this feature :), how to turn it on? I cannot find it anywhere"}}