]> Cypherpunks.ru repositories - gostls13.git/commit
[dev.typeparams] cmd/compile/internal/types: format union types
authorKeith Randall <khr@golang.org>
Thu, 22 Jul 2021 22:30:01 +0000 (15:30 -0700)
committerKeith Randall <khr@golang.org>
Fri, 23 Jul 2021 03:55:44 +0000 (03:55 +0000)
commit4cdc65d32a3f0378cc508e8eb395063b83683fd4
tree48db4c555e7900b7fbcc7a5bc37cba19d5ee2d0e
parent244267e8c4aebfadce5a43a7395ae59eacd76a21
[dev.typeparams] cmd/compile/internal/types: format union types

Previously it was just printing <S>. Now it prints things like int32|~int64.

Change-Id: I960b011ce8ed360020a49ae7809d85d1d1fdbfb2
Reviewed-on: https://go-review.googlesource.com/c/go/+/336692
Trust: Keith Randall <khr@golang.org>
Trust: Dan Scales <danscales@google.com>
Run-TryBot: Keith Randall <khr@golang.org>
TryBot-Result: Go Bot <gobot@golang.org>
Reviewed-by: Dan Scales <danscales@google.com>
src/cmd/compile/internal/types/fmt.go