]> Cypherpunks.ru repositories - gostls13.git/blob - test/fixedbugs/issue27938.go
cmd/compile/internal/inline: score call sites exposed by inlines
[gostls13.git] / test / fixedbugs / issue27938.go
1 // errorcheck -d=panic
2
3 // Copyright 2018 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 // Verify that we get a single non-confusing error
8 // message for embedded fields/interfaces that use
9 // a qualified identifier with non-existing package.
10
11 package p
12
13 type _ struct {
14         F sync.Mutex // ERROR "undefined: sync|expected package|reference to undefined name"
15 }
16
17 type _ struct {
18         sync.Mutex // ERROR "undefined: sync|expected package|reference to undefined name"
19 }
20
21 type _ interface {
22         sync.Mutex // ERROR "undefined: sync|expected package|expected signature or type name|reference to undefined name"
23 }