github.com/traefik/yaegi@v0.15.1/_test/complex2.go (about) 1 package main 2 3 import "fmt" 4 5 func main() { 6 c := complex(1, 0) 7 c += 1 8 fmt.Printf("%T %v\n", c, c) 9 } 10 11 // Output: 12 // complex128 (2+0i)