c++: decltype of (by-value captured reference) [PR79620]
[official-gcc.git] / libgo / go / reflect / eqtype.go
blob5639bc56487ec50384dc66615762d4f5fc6e19f2
1 // Copyright 2020 The Go Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style
3 // license that can be found in the LICENSE file.
5 // +build !aix !gccgo
7 package reflect
9 // rtypeEqual returns true if both rtypes are identical.
10 func rtypeEqual(t1, t2 *rtype) bool {
11 return t1 == t2
14 // typeEqual returns true if both Types are identical.
15 func typeEqual(t1, t2 Type) bool {
16 return t1 == t2
19 func toType(p *rtype) Type {
20 if p == nil {
21 return nil
23 return p