Source file test/fixedbugs/issue22921.go

     1  // errorcheck -d=panic
     2  
     3  // Copyright 2020 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 "bytes"
    10  
    11  type _ struct{ bytes.nonexist } // ERROR "unexported|undefined"
    12  
    13  type _ interface{ bytes.nonexist } // ERROR "unexported|undefined|expected signature or type name"
    14  
    15  func main() {
    16  	var _ bytes.Buffer
    17  	var _ bytes.buffer // ERROR "unexported|undefined"
    18  }
    19  

View as plain text