mirror of
https://github.com/golang/go
synced 2024-09-15 14:10:17 +00:00
79c5240799
The types of the two interfaces should be equal, but they aren't. We end up with multiple descriptors for a type when we need type descriptors to be unique. Fixes #49241 Change-Id: I8a6c70da541c6088a92a01392bc83b61cc130eba Reviewed-on: https://go-review.googlesource.com/c/go/+/360134 Trust: Keith Randall <khr@golang.org> Run-TryBot: Keith Randall <khr@golang.org> TryBot-Result: Go Bot <gobot@golang.org> Reviewed-by: Matthew Dempsky <mdempsky@google.com>
18 lines
308 B
Go
18 lines
308 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 c
|
|
|
|
import "a"
|
|
|
|
//go:noinline
|
|
func F() interface {} {
|
|
return a.T[int]{}
|
|
}
|
|
|
|
//go:noinline
|
|
func G() interface{} {
|
|
return struct{X,Y a.U}{}
|
|
}
|