1
0
mirror of https://github.com/golang/go synced 2024-11-19 01:34:40 -07:00
go/internal/lsp/testdata/bad
Iskander Sharipov dbc83e6dc0 internal/lsp/source: fix typeIsValid() inf recursion
typeIsValid() intended to stop on a named type, but
since we called Underlying(), switch case never caught any
named type. To avoid that, do an early check.

Fixes golang/go#36637

Change-Id: I2700afbb8f9678b4542e2e7dccc3be59b1d9ebdf
Reviewed-on: https://go-review.googlesource.com/c/tools/+/215238
Run-TryBot: Rebecca Stambler <rstambler@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Rebecca Stambler <rstambler@golang.org>
2020-01-21 04:27:40 +00:00
..
bad0.go internal/lsp: refactor error handling code in type-checking 2019-10-21 18:57:46 +00:00
bad1.go internal/lsp/source: fix typeIsValid() inf recursion 2020-01-21 04:27:40 +00:00
badimport.go internal/lsp: do not close over the handle in the memoize function 2019-10-30 00:30:36 +00:00