mirror of
https://github.com/hanzoai/yaegi.git
synced 2026-10-01 00:49:47 +00:00
When a function variable is assigned from an exported method, make sure the receiver is updated from the coresponding symbol. Fixes #1182.
10 lines
121 B
Go
10 lines
121 B
Go
package d1
|
|
|
|
type T struct {
|
|
Name string
|
|
}
|
|
|
|
func (t *T) F() { println(t.Name) }
|
|
|
|
func NewT(s string) *T { return &T{s} }
|