You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
With the newly accepted spec change ( http://golang.org/cl/6572049/ ), all
conversions must accept a trailing comma after the argument to be converted. The
following program should compile w/o errors:
package p
var (
_ = int(1.0,) // comma is permitted
_ = []byte("foo",) // syntax error: unexpected comma
_ = chan int(nil,) // syntax error: unexpected comma
_ = (func())(nil,) // syntax error: unexpected comma
)