]> Cypherpunks repositories - gostls13.git/commit
go/types: add untyped test cases for AssignableTo API
authorRob Findley <rfindley@google.com>
Mon, 24 Aug 2020 14:43:43 +0000 (10:43 -0400)
committerRobert Findley <rfindley@google.com>
Thu, 27 Aug 2020 16:05:57 +0000 (16:05 +0000)
commit73a5c372410adb272b6a63484c9a9de5e93e986c
tree6d1cd11376bd18ffaccda69e8f610c83e30a5b3f
parent346efc28508dc358cba7e246adeb40bde99cfb2a
go/types: add untyped test cases for AssignableTo API

The AssignableTo API is specifically for non-constant values, but is
currently called by gopls for constant completions. Add a test to ensure
that we handle this edge case correctly.

Change-Id: I83115cbca2443a783df1c3090b5741260dffb78e
Reviewed-on: https://go-review.googlesource.com/c/go/+/250258
Run-TryBot: Robert Findley <rfindley@google.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Robert Griesemer <gri@golang.org>
src/go/types/api_test.go