{"action":"created","issue":{"url":"https://api.github.com/repos/golang/go/issues/13190","labels_url":"https://api.github.com/repos/golang/go/issues/13190/labels{/name}","comments_url":"https://api.github.com/repos/golang/go/issues/13190/comments","events_url":"https://api.github.com/repos/golang/go/issues/13190/events","html_url":"https://github.com/golang/go/issues/13190","id":115870668,"number":13190,"title":"x/mobile/bind: Functions with type alias parameters result in cryptic errors","user":{"login":"sridharv","id":326998,"avatar_url":"https://avatars.githubusercontent.com/u/326998?v=3","gravatar_id":"","url":"https://api.github.com/users/sridharv","html_url":"https://github.com/sridharv","followers_url":"https://api.github.com/users/sridharv/followers","following_url":"https://api.github.com/users/sridharv/following{/other_user}","gists_url":"https://api.github.com/users/sridharv/gists{/gist_id}","starred_url":"https://api.github.com/users/sridharv/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sridharv/subscriptions","organizations_url":"https://api.github.com/users/sridharv/orgs","repos_url":"https://api.github.com/users/sridharv/repos","events_url":"https://api.github.com/users/sridharv/events{/privacy}","received_events_url":"https://api.github.com/users/sridharv/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":{"url":"https://api.github.com/repos/golang/go/milestones/22","html_url":"https://github.com/golang/go/milestones/Unreleased","labels_url":"https://api.github.com/repos/golang/go/milestones/22/labels","id":1067491,"number":22,"title":"Unreleased","description":"Issues that do not affect released Go code and binaries.\r\n","creator":{"login":"rsc","id":104030,"avatar_url":"https://avatars.githubusercontent.com/u/104030?v=3","gravatar_id":"","url":"https://api.github.com/users/rsc","html_url":"https://github.com/rsc","followers_url":"https://api.github.com/users/rsc/followers","following_url":"https://api.github.com/users/rsc/following{/other_user}","gists_url":"https://api.github.com/users/rsc/gists{/gist_id}","starred_url":"https://api.github.com/users/rsc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rsc/subscriptions","organizations_url":"https://api.github.com/users/rsc/orgs","repos_url":"https://api.github.com/users/rsc/repos","events_url":"https://api.github.com/users/rsc/events{/privacy}","received_events_url":"https://api.github.com/users/rsc/received_events","type":"User","site_admin":false},"open_issues":392,"closed_issues":280,"state":"open","created_at":"2015-04-14T18:48:22Z","updated_at":"2015-11-09T20:11:53Z","due_on":"2099-12-31T05:00:00Z","closed_at":null},"comments":2,"created_at":"2015-11-09T12:51:07Z","updated_at":"2015-11-10T03:03:03Z","closed_at":null,"body":"Context:\r\n\r\ngo version devel +9172a1b\r\ngomobile version +1452f03\r\nOn Mac OSX\r\n\r\nI created a package with an exported function that had a parameter with a type alias as shown below.\r\n\r\n```\r\npackage typealiasmissing\r\n\r\ntype Alias string\r\n\r\ntype Op struct {\r\n\tId int\r\n}\r\n\r\nfunc (o *Op) PrintAlias(alias Alias) {\r\n\tprintln(alias)\r\n}\r\n```\r\n\r\nWhen I run `gomobile bind` I get the following error:\r\n\r\n```\r\n/var/folders/x7/r_g4gq092fz_956f6hqq864w0000gn/T/gomobile-work-953337057/go_typealiasmissing/go_typealiasmissingmain.go:36: undefined: param_alias\r\n```\r\n\r\nThe generated binding code is not generating any sequence unpacking code. I expected this to either succeed or to generate an error saying type aliases are not supported.\r\n\r\nHere is a small package which can be used to reproduce the error:\r\n\r\n```\r\ngo get github.com/sridharv/bugreports/typealiasmissing\r\ngomobile bind github.com/sridharv/bugreports/typealiasmissing\r\n```"},"comment":{"url":"https://api.github.com/repos/golang/go/issues/comments/155269064","html_url":"https://github.com/golang/go/issues/13190#issuecomment-155269064","issue_url":"https://api.github.com/repos/golang/go/issues/13190","id":155269064,"user":{"login":"gopherbot","id":8566911,"avatar_url":"https://avatars.githubusercontent.com/u/8566911?v=3","gravatar_id":"","url":"https://api.github.com/users/gopherbot","html_url":"https://github.com/gopherbot","followers_url":"https://api.github.com/users/gopherbot/followers","following_url":"https://api.github.com/users/gopherbot/following{/other_user}","gists_url":"https://api.github.com/users/gopherbot/gists{/gist_id}","starred_url":"https://api.github.com/users/gopherbot/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gopherbot/subscriptions","organizations_url":"https://api.github.com/users/gopherbot/orgs","repos_url":"https://api.github.com/users/gopherbot/repos","events_url":"https://api.github.com/users/gopherbot/events{/privacy}","received_events_url":"https://api.github.com/users/gopherbot/received_events","type":"User","site_admin":false},"created_at":"2015-11-10T03:03:03Z","updated_at":"2015-11-10T03:03:03Z","body":"CL https://golang.org/cl/16780 mentions this issue."}}