x/mobile: function with alias type as argument or return value cannot be exported #39735
Labels
mobile
Android, iOS, and x/mobile
NeedsInvestigation
Someone must examine and confirm this is a valid issue and not a duplicate of an existing one.
Milestone
What version of Go are you using (
go version
)?Does this issue reproduce with the latest release?
Yes
What operating system and processor architecture are you using (
go env
)?go env
OutputWhat did you do?
gomobile bind -target=ios demo
What did you expect to see?
Generate bindings:
What did you see instead?
I guess gobind doesn't use
demo.IntSet
asdemo.NewIntSet
's return value type, still usemodel.IntSet
which is not exported.To fix this issue, I have to define a new type like
type IntSet model.IntSet
, in this way, it requires to rewrite all methods because nowdemo.IntSet
is a new type. This brings lots of work.The text was updated successfully, but these errors were encountered: