blob: f80857dcb9921dd6dd8a1b99c348419d295a2c4d [file] [log] [blame]
This test verifies that we can export constants with unknown kind.
Previously, the exporter would panic while attempting to convert such constants
to their target type (float64, in this case).
-- go.mod --
module mod.txt/p
go 1.20
-- p.go --
package p
const EPSILON float64 = 1e- //@diag(re"1e-()", re"exponent has no digits")