Skip to content

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

Closed
@dvyukov

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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions