]> Cypherpunks.ru repositories - gostls13.git/blob - test/blank1.go
test: [a-c]: add introductory comments to tests
[gostls13.git] / test / blank1.go
1 // errorcheck
2
3 // Copyright 2009 The Go Authors. All rights reserved.
4 // Use of this source code is governed by a BSD-style
5 // license that can be found in the LICENSE file.
6
7 // Test that incorrect uses of the blank identifer are caught.
8 // Does not compile.
9
10 package _       // ERROR "invalid package name _"
11
12 func main() {
13         _()     // ERROR "cannot use _ as value"
14         x := _+1        // ERROR "cannot use _ as value"
15         _ = x
16 }