mirror of
https://github.com/golang/go
synced 2024-11-18 07:24:45 -07:00
e780fa8669
universe block names. BUG=2097244 R=ken OCL=34295 CL=34473
18 lines
288 B
Go
18 lines
288 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 X = iota
|
|
|
|
func f(x int) { }
|
|
|
|
func main() {
|
|
f(X);
|
|
f(iota); // ERROR "iota"
|
|
f(X);
|
|
}
|