1
0
mirror of https://github.com/golang/go synced 2024-11-18 06:24:47 -07:00
go/test/fixedbugs/issue11359.go
Russ Cox 247959d9b8 cmd/compile: reject identifiers beginning with non-ASCII digit
Fixes #11359.

Change-Id: I0fdfa410939f7e42020cbb19d74a67e1cc3cd610
Reviewed-on: https://go-review.googlesource.com/16919
Reviewed-by: Ian Lance Taylor <iant@golang.org>
2015-11-16 20:38:42 +00:00

12 lines
333 B
Go

// errorcheck
// Copyright 2015 The Go Authors. All rights reserved.
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
// identifiers beginning with non-ASCII digits were incorrectly accepted.
// issue 11359.
package p
var ۶ = 0 // ERROR "identifier cannot begin with digit"