• Matthew Dempsky's avatar
    cmd/compile: remove DDD array types · 616c39f6
    Matthew Dempsky authored
    Currently we handle [...]T array literals by treating [...]T as
    special "DDD array" types. However, these array literals are just
    composite literal syntax, not a distinct Go type. Moreover,
    representing them as Go types contributes to complexity in a number of
    unrelated bits of code.
    
    This CL changes OCOMPLIT typechecking to look for the [...]T syntax
    and handle it specially, so we can remove DDD arrays.
    
    Passes toolstash-check.
    
    Change-Id: Ibbf701eac4caa7a321e2d10e256658fdfaa8a160
    Reviewed-on: https://go-review.googlesource.com/c/go/+/197604
    Run-TryBot: Matthew Dempsky <mdempsky@google.com>
    TryBot-Result: Gobot Gobot <gobot@golang.org>
    Reviewed-by: default avatarRobert Griesemer <gri@golang.org>
    616c39f6
align.go 9.7 KB