mirror of
https://github.com/traefik/yaegi.git
synced 2026-06-01 18:37:56 +00:00
When a function variable is assigned from an exported method, make sure the receiver is updated from the coresponding symbol. Fixes #1182.
12 lines
110 B
Go
12 lines
110 B
Go
package main
|
|
|
|
import "github.com/traefik/yaegi/_test/d2"
|
|
|
|
func main() {
|
|
f := d2.F
|
|
f()
|
|
}
|
|
|
|
// Output:
|
|
// test
|