yaegi
yaegi copied to clipboard
Yaegi is Another Elegant Go Interpreter
Currently we are use `path` instead of `filepath` and all imports are used directly.
### The following program `sample.go` triggers an unexpected result ```go package main import ( "fmt" "google.golang.org/grpc" "google.golang.org/grpc/credentials/insecure" ) func main() { fmt.Println("Hello") conn, err := grpc.Dial("localhost:5000", grpc.WithTransportCredentials(insecure.NewCredentials())) if err !=...
Fixes #1475
### The following program `sample.go` triggers an unexpected result ```go package main type T uint16 func f() T { return 0 } func main() { println(f()) } ``` ### Expected...
In case of interface values, make sure that the concrete type is preserved during type inference. Fixes #1466.
Fixes #1465.
For example, on architecture GOARCH=amd64, a file named `foobar_amd64.go` would be skipped instead of being read and parsed. The function `skipFile` is fixed and missing tests are added.
In case of forward definition of a constant, a symbol may be undefined when attempting to compute the array size in type ananlysis. Just mark the type as incomplete instead...
### The following program `sample.go` triggers an unexpected result ```go package main type T struct { num [tnum + 2]int } const tnum = 23 func main() { t :=...