commit | 459a8a94e04a19bde7173ef7cf2db369c2e62e2d | [log] [tgz] |
---|---|---|
author | Ian Lance Taylor <iant@golang.org> | Sun Feb 18 14:41:31 2018 -0800 |
committer | Ian Lance Taylor <iant@golang.org> | Tue Feb 20 13:52:11 2018 +0000 |
tree | 5a052801fcb1450ddf5034a5069dbbdab1789529 | |
parent | cef3934fbc63f5e121abb8f88d3799961ac95b59 [diff] |
compiler: look through aliases for type compatibility Aliases are supposed to be identical to the type being aliased, so questions about type compatibility need to always ignore aliases, except for error messages involving the type name. The test case for this is https://golang.org/cl/94995. Fixes golang/go#23912 Change-Id: Ic3500b9689476239367d73dfd987ee91ea649a13 Reviewed-on: https://go-review.googlesource.com/94996 Reviewed-by: Than McIntosh <thanm@google.com>