x/tools/gopls: show hex/binary literal with which a const was declared on mouse over #47453
What did you do?
Mouse over a hex/binary notation integer
const hex, bin, oct = 0xe34e, 0b10101, 071 // Mouse over variable name `hex` or `bin` shows decimal representation c := hex * bin
What did you expect to see?
The literal used to declare the
With the philosophy out of the way, I expected to see:
What did you see instead?
The text was updated successfully, but these errors were encountered:
@hyangah negative. The issues are similar in nature though. I'm not asking for literal evaluation but rather that gopls show me how the author initialized a const integer since there are around 5 ways of initializing the same number and usually non-decimal form carries useful information about certain bits (i.e. bitfields, masks)