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
Using expr.Eval seems to work fine though. I will also submit the following example as a pull request:
`type AnInterface interface { Method(x string) []AnInterface }
type A struct{ I int }
func (self A) Method(x string) []AnInterface { return []AnInterface{self} }
func ExampleCompileInterfaceMethodCall() {
type B_Env struct{ Ai AnInterface } env := B_Env{A{6}} prog, err := expr.Compile(`Ai.Method("x")`, expr.Env(env)) if err != nil { fmt.Printf("%v", err) return } output, err := expr.Run(prog, env) if err != nil { fmt.Printf("%v", err) return } fmt.Printf("%v", output) // Output: 6
}`
The text was updated successfully, but these errors were encountered:
Fixed in 9c096db
Sorry, something went wrong.
No branches or pull requests
Using expr.Eval seems to work fine though.
I will also submit the following example as a pull request:
`type AnInterface interface {
Method(x string) []AnInterface
}
type A struct{ I int }
func (self A) Method(x string) []AnInterface {
return []AnInterface{self}
}
func ExampleCompileInterfaceMethodCall() {
}`
The text was updated successfully, but these errors were encountered: