commit | 81687fccc568a088fee8f627ddde599e17c648c2 | [log] [tgz] |
---|---|---|
author | Ian Lance Taylor <iant@golang.org> | Sat Dec 05 18:42:30 2020 -0800 |
committer | Ian Lance Taylor <iant@golang.org> | Mon Dec 07 17:42:21 2020 +0000 |
tree | 330d43dd4eedb66adeba80ba9c4f36ad0d46ecbd | |
parent | 2184750d74d37580486e90df1284c07fdee91670 [diff] |
compiler: type of string index expression is byte To make this work from the do_type method, add "byte" and "rune" to the list of known integer types, and look them up that way rather than via gogo->lookup_global. For golang/go#8745 Change-Id: Ie63fb3bc0efc1bad240c3d9585ee94eca5fe71ba Reviewed-on: https://go-review.googlesource.com/c/gofrontend/+/275653 Trust: Ian Lance Taylor <iant@golang.org> Reviewed-by: Cherry Zhang <cherryyz@google.com>