Skip to content

x/tools/go/types: misses '-' in error message #11367

Closed
@dvyukov

Description

On the following program:

package a
var x = -byte(1)

gotype says:

tmp.go:2:10: byte(1) (constant -1 of type byte) overflows byte

It should say -byte(1). byte(1) does not overflow byte.

on commit e9a746d

Activity

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

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions