The following program sample.go triggers an unexpected result
package main
func main() {
var m = map[string]interface{}{
"name": "caius",
}
var pp interface{}
pp = "abc"
pp, ok := m["pp"]
fmt.Println(">>pp", pp, ok) // Result: pp="abc",not nil !!! (In the go interpreter, the result is nil)
}
The following program
sample.go
triggers an unexpected resultExpected result
Got
Yaegi Version
0.15.1
Additional Notes
No response