commit | 94808b9af5cd9b9102ae9680a0e5f124c6793815 | [log] [tgz] |
---|---|---|
author | Ian Lance Taylor <iant@golang.org> | Wed Oct 14 15:30:00 2020 -0700 |
committer | Ian Lance Taylor <iant@golang.org> | Thu Oct 15 19:33:21 2020 +0000 |
tree | 63f227e0fd96dbd948b44a1c292b620be99639ee | |
parent | b73a8f17dfe8d7c7ecc9ccd0317be5abe71c5509 [diff] |
compiler: export type for string and bool constants Also consolidate the identical code for constant type export into a pair of static methods. Fixes golang/go#35739 Change-Id: Ifdccd944dbfc032a7bfb29121a5a6e93bcdeb7b7 Reviewed-on: https://go-review.googlesource.com/c/gofrontend/+/262437 Trust: Ian Lance Taylor <iant@golang.org> Reviewed-by: Than McIntosh <thanm@google.com> Reviewed-by: Cherry Zhang <cherryyz@google.com>