What steps will reproduce the problem?
1. Run gotype (code.google.com/p/go.exp/gotype) on:
s uint = 20
x int = complex(1<<s, 2)
What is the expected output? What do you see instead?
Expected: something like
truc.go:5:??: cannot assign complex(1<<s, 2) (untyped complex) to x of type int
Got: no error.
Please use labels and text to provide additional information.
The text was updated successfully, but these errors were encountered:
This now reports:
x.go:5:23: invalid operation: shifted operand 1 (type float64) must be integer
x.go:5:15: cannot initialize x (type int) with complex(1 << s, 2) (value of type