Skip to content

Error message for 1<<"12" #2091

Open
Open
@xushiwei

Description

@xushiwei

The following program sample.gop triggers an unexpected result

echo 1<<"12"

Expected result

sample.gop:1:1: cannot convert "12" (untyped string constant) to type uint

Got

sample.gop:1:1: compile `echo 1<<"12"`: constant value is overflow

Gop Version

v1.2.6

Additional Notes

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions