Closed mvertes closed 2 years ago
sample.go
package main func f(params ...interface{}) { switch p0 := params[0].(type) { case string: println("string:", p0) default: println("not a string") } } func main() { f("Hello") }
$ go run ./sample.go Hello
$ yaegi ./sample.go not a string
v0.14.1
This issue is related to #1426.
The following program
sample.go
triggers an unexpected resultExpected result
Got
Yaegi Version
v0.14.1
Additional Notes
This issue is related to #1426.