Skip to content

go.tools/go/types: fix float32 conversion #8066

@griesemer

Description

@griesemer
gotype fails for:

package p
const x = float32(340282356779733661637539395458142568447)

with:

x.go:2:19: cannot convert 340282356779733661637539395458142568447 (untyped int constant)
to float32

Once this is fixed, we can re-enable float_lit2.go in the StdTest tests.

See also issue #8065.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions