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
[]Interface
Reproduction steps:
mkdir dum cd dum go mod init dummy.com/dum mkdir hello
hello/hello.go
package hello type Example interface { Sample() int } type ExampleImpl struct { sample int } func (example *ExampleImpl) Sample() int { return example.sample } func Hello() []Example { return []Example{&ExampleImpl{sample: 123}, &ExampleImpl{sample: 321}} }
gopy
gopy build -output=out dummy.com/dum/hello
>>> from out import hello >>> output = hello.Hello() >>> output[0].Sample() panic: interface conversion: *hello.Example is not hello.Example: missing method Sample goroutine 17 [running, locked to thread]: main.hello_Example_Sample(0x2) /tmp/dum/out/hello.go:1230 +0xf9 zsh: IOT instruction (core dumped) python
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Reproduction steps:
hello/hello.go
with following contents:gopy
:The text was updated successfully, but these errors were encountered: