{"action":"created","issue":{"url":"https://api.github.com/repos/delete/cool-compiler/issues/7","repository_url":"https://api.github.com/repos/delete/cool-compiler","labels_url":"https://api.github.com/repos/delete/cool-compiler/issues/7/labels{/name}","comments_url":"https://api.github.com/repos/delete/cool-compiler/issues/7/comments","events_url":"https://api.github.com/repos/delete/cool-compiler/issues/7/events","html_url":"https://github.com/delete/cool-compiler/issues/7","id":139431656,"number":7,"title":"Calling variable from object - Sintatyc error","user":{"login":"delete","id":434694,"avatar_url":"https://avatars.githubusercontent.com/u/434694?v=3","gravatar_id":"","url":"https://api.github.com/users/delete","html_url":"https://github.com/delete","followers_url":"https://api.github.com/users/delete/followers","following_url":"https://api.github.com/users/delete/following{/other_user}","gists_url":"https://api.github.com/users/delete/gists{/gist_id}","starred_url":"https://api.github.com/users/delete/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/delete/subscriptions","organizations_url":"https://api.github.com/users/delete/orgs","repos_url":"https://api.github.com/users/delete/repos","events_url":"https://api.github.com/users/delete/events{/privacy}","received_events_url":"https://api.github.com/users/delete/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/delete/cool-compiler/labels/bug","name":"bug","color":"fc2929"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2016-03-09T00:02:23Z","updated_at":"2016-03-09T03:03:24Z","closed_at":null,"body":"If I try compile this code:\r\n\r\n```\r\nclass A  {\r\n    val : Int <- 2;\r\n}; \r\n\r\nclass Main inherits IO {\r\n    a : A <- new A;\r\n    main() : Object { \r\n        {\r\n            out_int(a.val);\r\n        }\r\n    };\r\n}; \r\n```\r\nI got this error:\r\n\r\n```\r\nparser error: LexToken(RPAREN,')',9,150)\r\nSintatic - ERROR\r\n```\r\n\r\nThe error refers to this line: ` out_int(a.val);`"},"comment":{"url":"https://api.github.com/repos/delete/cool-compiler/issues/comments/194091113","html_url":"https://github.com/delete/cool-compiler/issues/7#issuecomment-194091113","issue_url":"https://api.github.com/repos/delete/cool-compiler/issues/7","id":194091113,"user":{"login":"delete","id":434694,"avatar_url":"https://avatars.githubusercontent.com/u/434694?v=3","gravatar_id":"","url":"https://api.github.com/users/delete","html_url":"https://github.com/delete","followers_url":"https://api.github.com/users/delete/followers","following_url":"https://api.github.com/users/delete/following{/other_user}","gists_url":"https://api.github.com/users/delete/gists{/gist_id}","starred_url":"https://api.github.com/users/delete/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/delete/subscriptions","organizations_url":"https://api.github.com/users/delete/orgs","repos_url":"https://api.github.com/users/delete/repos","events_url":"https://api.github.com/users/delete/events{/privacy}","received_events_url":"https://api.github.com/users/delete/received_events","type":"User","site_admin":false},"created_at":"2016-03-09T03:03:24Z","updated_at":"2016-03-09T03:03:24Z","body":"Variables are prodected, so, I should not acesses them from another classe.\r\n\r\nThis examples is wrong, and the error is wrong too. \r\n\r\n**Should raise an error from semantic, not sintatyc.**"}}