{"action":"opened","issue":{"url":"https://api.github.com/repos/haxetink/tink_lang/issues/14","labels_url":"https://api.github.com/repos/haxetink/tink_lang/issues/14/labels{/name}","comments_url":"https://api.github.com/repos/haxetink/tink_lang/issues/14/comments","events_url":"https://api.github.com/repos/haxetink/tink_lang/issues/14/events","html_url":"https://github.com/haxetink/tink_lang/issues/14","id":93682521,"number":14,"title":"@:calculated can't access local class variable.","user":{"login":"Mixerman123","id":8501694,"avatar_url":"https://avatars.githubusercontent.com/u/8501694?v=3","gravatar_id":"","url":"https://api.github.com/users/Mixerman123","html_url":"https://github.com/Mixerman123","followers_url":"https://api.github.com/users/Mixerman123/followers","following_url":"https://api.github.com/users/Mixerman123/following{/other_user}","gists_url":"https://api.github.com/users/Mixerman123/gists{/gist_id}","starred_url":"https://api.github.com/users/Mixerman123/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Mixerman123/subscriptions","organizations_url":"https://api.github.com/users/Mixerman123/orgs","repos_url":"https://api.github.com/users/Mixerman123/repos","events_url":"https://api.github.com/users/Mixerman123/events{/privacy}","received_events_url":"https://api.github.com/users/Mixerman123/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-07-08T03:28:57Z","updated_at":"2015-07-08T03:28:57Z","closed_at":null,"body":"Hi again,\r\nI was using @:calculated to return a different sprite depending one whether this particular object was full, and came into an issue.\r\n\r\npublic var isFilled:Bool = false;\r\n@:calculated public var spriteID:Int = if (isFilled) 5 else 6;\r\n\r\nFor now I am just going to make it a function and pass it in as a getter, but I thought it was worth bringing up, as often the data in your expression will use local class variables."}}