• Russ Cox's avatar
    cmd/gc: allow new conversion syntax · ffc742b6
    Russ Cox authored
    For consistency with conversions that look like function calls,
    conversions that don't look like function calls now allow an
    optional trailing comma.
    
    That is, int(x,) has always been syntactically valid.
    Now []int(x,) is valid too.
    
    Fixes #4162.
    
    R=ken2
    CC=golang-dev
    https://golang.org/cl/7288045
    ffc742b6
yerr.h 1.54 KB