1
0
mirror of https://github.com/golang/go synced 2024-11-22 10:44:41 -07:00
go/test/bugs/bug126.go
Robert Griesemer b0192ea1a5 bug: constants should not be redeclarable
R=rsc
DELTA=9  (9 added, 0 deleted, 0 changed)
OCL=20187
CL=20187
2008-12-01 17:27:57 -08:00

11 lines
314 B
Go

// errchk $G $D/$F.go
// Copyright 2009 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.
package main
const none = 0 // same const identifier declared twice should not be accepted
const none = 1 // ERROR "redeclared"