1// run -goexperiment fieldtrack
2
3// Copyright 2021 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
7package main
8
9func main() {
10	var i interface{} = new(T)
11	if _, ok := i.(interface{ Bad() }); ok {
12		panic("FAIL")
13	}
14}
15
16type T struct{ U }
17
18type U struct{}
19
20//go:nointerface
21func (*U) Bad() {}
22