ssa: fix typeAssert for Nil

This commit is contained in:
visualfc
2024-06-11 20:50:01 +08:00
parent f33796797d
commit 3f0c65ebb2
7 changed files with 2557 additions and 72 deletions

View File

@@ -268,6 +268,9 @@ func IfacePtrData(i iface) unsafe.Pointer {
// Implements reports whether the type V implements the interface type T.
func Implements(T, V *abi.Type) bool {
if V == nil {
return false
}
if T.Kind() != abi.Interface {
return false
}