{"action":"created","issue":{"url":"https://api.github.com/repos/elixir-lang/elixir/issues/2061","labels_url":"https://api.github.com/repos/elixir-lang/elixir/issues/2061/labels{/name}","comments_url":"https://api.github.com/repos/elixir-lang/elixir/issues/2061/comments","events_url":"https://api.github.com/repos/elixir-lang/elixir/issues/2061/events","html_url":"https://github.com/elixir-lang/elixir/issues/2061","id":27859560,"number":2061,"title":"Allow ^ in function heads (consider bitinfo and map variables)","user":{"login":"josevalim","id":9582,"avatar_url":"https://avatars.githubusercontent.com/u/9582?v=3","gravatar_id":"","url":"https://api.github.com/users/josevalim","html_url":"https://github.com/josevalim","followers_url":"https://api.github.com/users/josevalim/followers","following_url":"https://api.github.com/users/josevalim/following{/other_user}","gists_url":"https://api.github.com/users/josevalim/gists{/gist_id}","starred_url":"https://api.github.com/users/josevalim/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/josevalim/subscriptions","organizations_url":"https://api.github.com/users/josevalim/orgs","repos_url":"https://api.github.com/users/josevalim/repos","events_url":"https://api.github.com/users/josevalim/events{/privacy}","received_events_url":"https://api.github.com/users/josevalim/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/elixir-lang/elixir/labels/App:Elixir","name":"App:Elixir","color":"CCCCCC"},{"url":"https://api.github.com/repos/elixir-lang/elixir/labels/Kind:Feature","name":"Kind:Feature","color":"0052cc"},{"url":"https://api.github.com/repos/elixir-lang/elixir/labels/Level:Advanced","name":"Level:Advanced","color":"f7c6c7"}],"state":"closed","locked":false,"assignee":null,"milestone":{"url":"https://api.github.com/repos/elixir-lang/elixir/milestones/16","html_url":"https://github.com/elixir-lang/elixir/milestones/v1.2.0","labels_url":"https://api.github.com/repos/elixir-lang/elixir/milestones/16/labels","id":1248131,"number":16,"title":"v1.2.0","description":"","creator":{"login":"josevalim","id":9582,"avatar_url":"https://avatars.githubusercontent.com/u/9582?v=3","gravatar_id":"","url":"https://api.github.com/users/josevalim","html_url":"https://github.com/josevalim","followers_url":"https://api.github.com/users/josevalim/followers","following_url":"https://api.github.com/users/josevalim/following{/other_user}","gists_url":"https://api.github.com/users/josevalim/gists{/gist_id}","starred_url":"https://api.github.com/users/josevalim/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/josevalim/subscriptions","organizations_url":"https://api.github.com/users/josevalim/orgs","repos_url":"https://api.github.com/users/josevalim/repos","events_url":"https://api.github.com/users/josevalim/events{/privacy}","received_events_url":"https://api.github.com/users/josevalim/received_events","type":"User","site_admin":false},"open_issues":8,"closed_issues":5,"state":"open","created_at":"2015-08-10T12:59:23Z","updated_at":"2015-10-21T11:50:57Z","due_on":"2015-12-20T23:00:00Z","closed_at":null},"comments":13,"created_at":"2014-02-19T08:59:36Z","updated_at":"2015-10-21T11:50:57Z","closed_at":"2015-10-21T11:50:57Z","body":"The following code should work:\r\n\r\n```iex\r\niex> x = 1\r\niex> fn(x, << y :: size(^x) >>) -> { x, y } end\r\n```\r\n\r\nThe following code should not:\r\n\r\n```iex\r\niex> x = 1\r\niex> fn(x, << y :: size(x) >>) -> { x, y } end\r\n```\r\n\r\nBoth expressions should be valid outside fn match though."},"comment":{"url":"https://api.github.com/repos/elixir-lang/elixir/issues/comments/149865703","html_url":"https://github.com/elixir-lang/elixir/issues/2061#issuecomment-149865703","issue_url":"https://api.github.com/repos/elixir-lang/elixir/issues/2061","id":149865703,"user":{"login":"josevalim","id":9582,"avatar_url":"https://avatars.githubusercontent.com/u/9582?v=3","gravatar_id":"","url":"https://api.github.com/users/josevalim","html_url":"https://github.com/josevalim","followers_url":"https://api.github.com/users/josevalim/followers","following_url":"https://api.github.com/users/josevalim/following{/other_user}","gists_url":"https://api.github.com/users/josevalim/gists{/gist_id}","starred_url":"https://api.github.com/users/josevalim/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/josevalim/subscriptions","organizations_url":"https://api.github.com/users/josevalim/orgs","repos_url":"https://api.github.com/users/josevalim/repos","events_url":"https://api.github.com/users/josevalim/events{/privacy}","received_events_url":"https://api.github.com/users/josevalim/received_events","type":"User","site_admin":false},"created_at":"2015-10-21T11:50:57Z","updated_at":"2015-10-21T11:50:57Z","body":"Fixed in master."}}