Skip to content

x/tools/go/types: converts complex constant to string #11357

Description

@dvyukov

gotype successfully compiles the following program:

package a
var s = string(0i)

It must not. 0i is a complex constant.
on commit e9a746d

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions