Closed
Description
In the example:
var f func() string
var s []string
var a [1]string
var ch chan string
var m map[int]string
var _ string = <>
It would be nice if <>
preferred s
, a
, ch
, and m
. We already prefer f
. The completion candidate should include the appropriate expression to access the element type, such as s[<>]
for indexable things, or <-ch
for channels.