github.com/switchupcb/yaegi@v0.10.2/_test/scope1.go (about) 1 package main 2 3 func f(a int) int { 4 return 2*a + 1 5 } 6 7 var b int = f(3) 8 9 func main() { 10 println(b) 11 } 12 13 // Output: 14 // 7