blob: ea459218889dda90a7a9f3e1b0bcc41832711a04 [file] [log] [blame]
// +build OMIT
package main
import "fmt"
func main() {
// START OMIT
type MyComplex128 complex128
const I = (0.0 + 1.0i)
const TypedI complex128 = (0.0 + 1.0i)
var mc MyComplex128
mc = (0.0 + 1.0i) // OK
mc = I // OK
mc = TypedI // Bad
fmt.Println(mc)
// STOP OMIT
}