You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
mikioh
changed the title
mobile/gobind: exported interface function with struct pointer produces invalid generated code
cmd/gobind: exported interface function with struct pointer produces invalid generated code
Jan 4, 2015
mikioh
changed the title
cmd/gobind: exported interface function with struct pointer produces invalid generated code
x/mobile/cmd/gobind: exported interface function with struct pointer produces invalid generated code
Aug 5, 2015
This change makes gobind to generate proper Go-side proxy code to
handle interface methods that have parameters and return values.
It allows gobind to accept struct pointer types as parameters
or a return value of a method.
Fixesgolang/go#9487, golang/go#9488.
Change-Id: Id243c42ee0701d40e3871e392140368c2f8f9bc6
Reviewed-on: https://go-review.googlesource.com/2348
Reviewed-by: David Crawshaw <crawshaw@golang.org>
What version of Go are you using
go version devel +c7eb966 Wed Dec 24 07:30:28 2014 +0000 darwin/amd64
What operating system and processor architecture are you using?
osx 10.9.5 cross compiled for arm on Android 5.0.1 Nexus 5
What did you do?
Export interface with a function that returns a struct pointer
What did you expect to see?
Correctly generated code
What did you see instead?
Invalid code, line 19. The type reference is incorrect.
full output https://gist.github.com/ChrisSmith/95e149597df2b88a5cde
To reproduce, modify libhello's hi package like so
run gobind, it will fail with
The text was updated successfully, but these errors were encountered: