mirror of
https://github.com/traefik/yaegi.git
synced 2026-06-01 18:37:56 +00:00
When a define statement relies on a selector or type that may exist in another file it should revisit once GTA is complete. This allows that revisit. **Note:** In order to keep the original GTA error for the define statement, so the error received is correct and meaningful, I have added a node `meta` property. I decided to make it generic as it may be useful in future. There may be a better way to stash errors across the GTA runs and am open to suggestion here. Fixes #1253
15 lines
151 B
Go
15 lines
151 B
Go
package main
|
|
|
|
import (
|
|
"fmt"
|
|
|
|
"github.com/traefik/yaegi/_test/method38"
|
|
)
|
|
|
|
func main() {
|
|
fmt.Println(method38.Get())
|
|
}
|
|
|
|
// Output:
|
|
// &{[] {<nil>}}
|