Source file test/fixedbugs/issue63333.go
1 // errorcheck -goexperiment fieldtrack 2 3 // Copyright 2023 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 p 8 9 func f(interface{ m() }) {} 10 func g() { f(new(T)) } // ERROR "m method is marked 'nointerface'" 11 12 type T struct{} 13 14 //go:nointerface 15 func (*T) m() {} 16