We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
go version
go version go1.11.4 darwin/amd64
Yes
go env
GOARCH="amd64" GOOS="darwin"
// hello.go
package hello type DeviceType = string
Run: gomobile bind -target=ios .
Succeeded to generate objc framework
panic: interface conversion: types.Type is *types.Basic, not *types.Named goroutine 1 [running]: golang.org/x/mobile/bind.(*Generator).Init(0xc0000b6dc0) /Users/gopher/go/src/golang.org/x/mobile/bind/gen.go:149 +0x1313 golang.org/x/mobile/bind.GenGo(0xc000022a00, 0x1b, 0x137cdc0) /Users/gopher/go/src/golang.org/x/mobile/bind/bind.go:45 +0x1a4 main.genPkg(0x7ffeefbff74d, 0x2, 0xc00000f810, 0xc00000c190, 0x1, 0x1, 0xc00000c118, 0x1, 0x1, 0x0, ...) /Users/gopher/go/src/golang.org/x/mobile/cmd/gobind/gen.go:116 +0x1dce main.run() /Users/gopher/go/src/golang.org/x/mobile/cmd/gobind/main.go:158 +0xa27 main.main() /Users/gopher/go/src/golang.org/x/mobile/cmd/gobind/main.go:45 +0x27
The text was updated successfully, but these errors were encountered:
It's OK for alias to named type, doesn't work for alias to builtin type. Thanks:)
Sorry, something went wrong.
Change https://golang.org/cl/159417 mentions this issue: bind: ignore type aliases to basic types
bind: ignore type aliases to basic types
golang/mobile@feefccb
85b188f
Fixes golang/go#29559 Change-Id: Iffaac239e5c9a9e53f4e292b4d9bf669d5084e1f GitHub-Last-Rev: c5d4a48 GitHub-Pull-Request: golang#25 Reviewed-on: https://go-review.googlesource.com/c/159417 Reviewed-by: Elias Naur <mail@eliasnaur.com>
8dafe30
No branches or pull requests
What version of Go are you using (
go version
)?go version go1.11.4 darwin/amd64
Does this issue reproduce with the latest release?
Yes
What operating system and processor architecture are you using (
go env
)?GOARCH="amd64"
GOOS="darwin"
What did you do?
// hello.go
Run: gomobile bind -target=ios .
What did you expect to see?
Succeeded to generate objc framework
What did you see instead?
The text was updated successfully, but these errors were encountered: