OLD | NEW |
1 // Copyright 2012 The Go Authors. All rights reserved. | 1 // Copyright 2012 The Go Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style | 2 // Use of this source code is governed by a BSD-style |
3 // license that can be found in the LICENSE file. | 3 // license that can be found in the LICENSE file. |
4 | 4 |
5 // This file contains tests for the untagged struct literal checker. | 5 // This file contains tests for the untagged struct literal checker. |
6 | 6 |
7 // This file contains the test for untagged struct literals. | 7 // This file contains the test for untagged struct literals. |
8 | 8 |
9 package testdata | 9 package testdata |
10 | 10 |
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
54 "Name", | 54 "Name", |
55 "Usage", | 55 "Usage", |
56 nil, // Value | 56 nil, // Value |
57 "DefValue", | 57 "DefValue", |
58 } | 58 } |
59 | 59 |
60 // Used to test the check for slices and arrays: If that test is disabled and | 60 // Used to test the check for slices and arrays: If that test is disabled and |
61 // vet is run with --compositewhitelist=false, this line triggers an error. | 61 // vet is run with --compositewhitelist=false, this line triggers an error. |
62 // Clumsy but sufficient. | 62 // Clumsy but sufficient. |
63 var scannerErrorListTest = scanner.ErrorList{nil, nil} | 63 var scannerErrorListTest = scanner.ErrorList{nil, nil} |
| 64 |
| 65 var _ = scannerErrorListTest // Silence the "unused" test. |
OLD | NEW |