Skip to content

cmd/compile: accepts invalid identifiers #11359

Description

@dvyukov

Gc successfully compiles the following program:

package a
var ۶ = 0

It must reject it, as U+06F6 is not classified as Letter (it is a digit):
http://graphemica.com/%DB%B6

go/ast parser correctly rejects the program with:

test.go:2:5: illegal character U+06F6 '۶'

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