You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
const (
a, _, c=T, iota, intD, E, fJ, k=iota, TL, M
)
godoc outputs:
const (
_ = T, iota, int
D, E
J = iota, T
L, M
)
It is not clear from the output what the type of D, E, L, or M is.
I came across this while working on a follow-up to #5397. This is an edge case, and I've not seen it in the real world. It is not clear what the correct thing to do here is; probably we should just ignore it.
The text was updated successfully, but these errors were encountered:
One could probably come up with some heuristics to make this work, but it's not clear it's worth the effort.
The correct approach would be to use go/types to compute the correct export information, combine that with the comments present in the source, and produce a synthetic AST from that.
@agnivade It's probably a mistake to not show the expressions in the first line - it would be nice if they were moved along. As is, these constants (D, E, _) look pretty lost.
Given:
godoc outputs:
It is not clear from the output what the type of
D
,E
,L
, orM
is.I came across this while working on a follow-up to #5397. This is an edge case, and I've not seen it in the real world. It is not clear what the correct thing to do here is; probably we should just ignore it.
The text was updated successfully, but these errors were encountered: