gitlab.com/ethan.reesor/vscode-notebooks/yaegi@v0.0.0-20220417214422-5c573557938e/_test/add2.go (about) 1 package main 2 3 type iface interface{} 4 5 func main() { 6 b := 2 7 var a iface = 5 + b 8 println(a.(int)) 9 } 10 11 // Output: 12 // 7