{"action":"created","issue":{"url":"https://api.github.com/repos/ethereum/solidity/issues/1144","repository_url":"https://api.github.com/repos/ethereum/solidity","labels_url":"https://api.github.com/repos/ethereum/solidity/issues/1144/labels{/name}","comments_url":"https://api.github.com/repos/ethereum/solidity/issues/1144/comments","events_url":"https://api.github.com/repos/ethereum/solidity/issues/1144/events","html_url":"https://github.com/ethereum/solidity/issues/1144","id":180860537,"number":1144,"title":"Inline assembly: cannot use this","user":{"login":"axic","id":20340,"avatar_url":"https://avatars.githubusercontent.com/u/20340?v=3","gravatar_id":"","url":"https://api.github.com/users/axic","html_url":"https://github.com/axic","followers_url":"https://api.github.com/users/axic/followers","following_url":"https://api.github.com/users/axic/following{/other_user}","gists_url":"https://api.github.com/users/axic/gists{/gist_id}","starred_url":"https://api.github.com/users/axic/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/axic/subscriptions","organizations_url":"https://api.github.com/users/axic/orgs","repos_url":"https://api.github.com/users/axic/repos","events_url":"https://api.github.com/users/axic/events{/privacy}","received_events_url":"https://api.github.com/users/axic/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2016-10-04T10:46:52Z","updated_at":"2016-10-04T17:48:07Z","closed_at":null,"body":"```\r\ncontract A {\r\n    function a() returns (uint a) {\r\n        assembly {\r\n            a := extcodesize(this)\r\n        }\r\n    }\r\n}\r\n```\r\n\r\n`this` is a valid reference when used with `extcodesize` / `balance` / etc, but it doesn't deposit a value to the stack:\r\n\r\n```\r\nUntitled1:5:18: Error: Expected instruction(s) to deposit 1 item(s) to the stack, but did deposit 0 item(s).\r\n            a := extcodesize(this)\r\n                 ^---------------^\r\n```"},"comment":{"url":"https://api.github.com/repos/ethereum/solidity/issues/comments/251461066","html_url":"https://github.com/ethereum/solidity/issues/1144#issuecomment-251461066","issue_url":"https://api.github.com/repos/ethereum/solidity/issues/1144","id":251461066,"user":{"login":"axic","id":20340,"avatar_url":"https://avatars.githubusercontent.com/u/20340?v=3","gravatar_id":"","url":"https://api.github.com/users/axic","html_url":"https://github.com/axic","followers_url":"https://api.github.com/users/axic/followers","following_url":"https://api.github.com/users/axic/following{/other_user}","gists_url":"https://api.github.com/users/axic/gists{/gist_id}","starred_url":"https://api.github.com/users/axic/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/axic/subscriptions","organizations_url":"https://api.github.com/users/axic/orgs","repos_url":"https://api.github.com/users/axic/repos","events_url":"https://api.github.com/users/axic/events{/privacy}","received_events_url":"https://api.github.com/users/axic/received_events","type":"User","site_admin":false},"created_at":"2016-10-04T17:48:07Z","updated_at":"2016-10-04T17:48:07Z","body":"Actually there are two error messages:\r\n```\r\nUntitled1:5:30: Error: Expected instruction(s) to deposit 1 item(s) to the stack, but did deposit 0 item(s).\r\n            a := extcodesize(this)\r\n                             ^--^\r\nUntitled1:5:18: Error: Expected instruction(s) to deposit 1 item(s) to the stack, but did deposit 0 item(s).\r\n            a := extcodesize(this)\r\n                 ^---------------^\r\n```"}}
{"actor":{"display_login":"axic"}}