golang.org/x/tools/gopls@v0.15.3/internal/test/marker/testdata/diagnostics/issue60605.txt (about) 1 This test verifies that we can export constants with unknown kind. 2 Previously, the exporter would panic while attempting to convert such constants 3 to their target type (float64, in this case). 4 5 -- go.mod -- 6 module mod.txt/p 7 8 go 1.20 9 -- p.go -- 10 package p 11 12 const EPSILON float64 = 1e- //@diag(re"1e-()", re"exponent has no digits")