Skip to content

cmd/compile: Go 1.13 language changes not rejected in go1.12 mode #31747

@rsc

Description

@rsc

go tool compile -lang=go1.12 should probably be diagnosing (rejecting) use of the new Go 1.13 language features like signed shifts and the new number literals. That way people who have go 1.12 in their go.mod files can be more confident that the code does build with Go 1.12.

/cc @ianlancetaylor @griesemer

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions