8000 Audit our code for incorrect assumptions about go/constant Kind · Issue #976 · dominikh/go-tools · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
Audit our code for incorrect assumptions about go/constant Kind #976
Open
@dominikh

Description

@dominikh

go/types together with the go/constant package don't require a constant representation to match the (untyped) constant type. For instance, it's ok to represent real(0) of type untyped float with a constant of kind constant.Int.

Make sure our code handles this correctly. It most likely doesn't.

See golang/go#43891

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0