Debian Codegraph @

test/fixedbugs/bug462.go

raw
1 // errorcheck
2
3 // Copyright 2012 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 package main
8
9 import "os"
10
11 var _ = os.Open // avoid imported and not used error
12
13 type T struct {
14 File int
15 }
16
17 func main() {
18 _ = T{
19 os.File: 1, // ERROR "invalid field name os.File|unknown field"
20 }
21 }