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