mirror of
https://github.com/golang/go
synced 2024-09-15 22:20:06 +00:00
ee91bb8319
This is a port of CL 349009 to typecheck importer. Fixes #48306 Change-Id: Iec3f078089346bd85f0ab739896e079940325011 Reviewed-on: https://go-review.googlesource.com/c/go/+/349011 Trust: Cuong Manh Le <cuong.manhle.vn@gmail.com> Trust: Dan Scales <danscales@google.com> Run-TryBot: Cuong Manh Le <cuong.manhle.vn@gmail.com> TryBot-Result: Go Bot <gobot@golang.org> Reviewed-by: Dan Scales <danscales@google.com>
16 lines
274 B
Go
16 lines
274 B
Go
// Copyright 2021 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 "a"
|
|
|
|
type S struct{}
|
|
|
|
func (*S) F() *S { return nil }
|
|
|
|
func main() {
|
|
var _ a.I[*S] = &S{}
|
|
}
|