{"action":"created","issue":{"url":"https://api.github.com/repos/ethereum/solidity/issues/589","repository_url":"https://api.github.com/repos/ethereum/solidity","labels_url":"https://api.github.com/repos/ethereum/solidity/issues/589/labels{/name}","comments_url":"https://api.github.com/repos/ethereum/solidity/issues/589/comments","events_url":"https://api.github.com/repos/ethereum/solidity/issues/589/events","html_url":"https://github.com/ethereum/solidity/issues/589","id":156110936,"number":589,"title":"Support calling library functions on literals","user":{"login":"Arachnid","id":17865,"avatar_url":"https://avatars.githubusercontent.com/u/17865?v=3","gravatar_id":"","url":"https://api.github.com/users/Arachnid","html_url":"https://github.com/Arachnid","followers_url":"https://api.github.com/users/Arachnid/followers","following_url":"https://api.github.com/users/Arachnid/following{/other_user}","gists_url":"https://api.github.com/users/Arachnid/gists{/gist_id}","starred_url":"https://api.github.com/users/Arachnid/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Arachnid/subscriptions","organizations_url":"https://api.github.com/users/Arachnid/orgs","repos_url":"https://api.github.com/users/Arachnid/repos","events_url":"https://api.github.com/users/Arachnid/events{/privacy}","received_events_url":"https://api.github.com/users/Arachnid/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/ethereum/solidity/labels/enhancement","name":"enhancement","color":"84b6eb"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2016-05-21T16:47:04Z","updated_at":"2016-05-22T10:19:01Z","closed_at":null,"body":"With the introduction of support for 'internal' library functions, libraries now have a bunch of new uses, including adding new functionality to existing types like `string`. However, while doing `using foo for string` will allow you to call functions defined in `foo` on `string` instances, `\"foo\".foo()` still fails with an error.\r\n\r\nIt'd be really good if Solidity could treat literals the same way as variables of the same type, and allow calling library methods on them."},"comment":{"url":"https://api.github.com/repos/ethereum/solidity/issues/comments/220824757","html_url":"https://github.com/ethereum/solidity/issues/589#issuecomment-220824757","issue_url":"https://api.github.com/repos/ethereum/solidity/issues/589","id":220824757,"user":{"login":"Arachnid","id":17865,"avatar_url":"https://avatars.githubusercontent.com/u/17865?v=3","gravatar_id":"","url":"https://api.github.com/users/Arachnid","html_url":"https://github.com/Arachnid","followers_url":"https://api.github.com/users/Arachnid/followers","following_url":"https://api.github.com/users/Arachnid/following{/other_user}","gists_url":"https://api.github.com/users/Arachnid/gists{/gist_id}","starred_url":"https://api.github.com/users/Arachnid/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Arachnid/subscriptions","organizations_url":"https://api.github.com/users/Arachnid/orgs","repos_url":"https://api.github.com/users/Arachnid/repos","events_url":"https://api.github.com/users/Arachnid/events{/privacy}","received_events_url":"https://api.github.com/users/Arachnid/received_events","type":"User","site_admin":false},"created_at":"2016-05-22T10:19:01Z","updated_at":"2016-05-22T10:19:01Z","body":"In the latest build this mysteriously already works for string literals!"}}
{"actor":{"display_login":"Arachnid"}}