Mixed operations



examples/numbers-mix/numbers_mix.go
package main

import (
    "fmt"
)

func main() {
    a := 3
    b := 7.0

    sum := a + b
    fmt.Printf("sum %v\n", sum)

    div := a / b
    fmt.Printf("div %v\n", div)

}

examples/numbers-mix/numbers_mix.out
# command-line-arguments
./numbers_mix.go:11:11: invalid operation: a + b (mismatched types int and float64)
./numbers_mix.go:14:11: invalid operation: a / b (mismatched types int and float64)