2020-08-24 02:23:27 -06:00
|
|
|
// errorcheck
|
|
|
|
|
|
|
|
// Copyright 2020 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
|
|
|
|
|
|
|
|
import "bytes"
|
|
|
|
|
2020-12-09 13:28:15 -07:00
|
|
|
type _ struct{ bytes.nonexist } // ERROR "unexported|undefined"
|
2020-08-24 02:23:27 -06:00
|
|
|
|
2020-12-09 13:28:15 -07:00
|
|
|
type _ interface{ bytes.nonexist } // ERROR "unexported|undefined"
|
2020-08-24 02:23:27 -06:00
|
|
|
|
|
|
|
func main() {
|
|
|
|
var _ bytes.Buffer
|
2020-12-09 13:28:15 -07:00
|
|
|
var _ bytes.buffer // ERROR "unexported|undefined"
|
2020-08-24 02:23:27 -06:00
|
|
|
}
|