diff --git a/internal/code/compare.go b/internal/code/compare.go index ed71aebdf3..df00d18157 100644 --- a/internal/code/compare.go +++ b/internal/code/compare.go @@ -47,10 +47,7 @@ func CompatibleTypes(expected types.Type, actual types.Type) error { return nil } else if actual, ok := actual.(*types.Named); ok { if underlyingBasic, ok := actual.Underlying().(*types.Basic); ok { - if underlyingBasic.Kind() != expected.Kind() { - return fmt.Errorf("basic kind differs with underlying, %s != %s", expected.Name(), underlyingBasic.Name()) - } - return nil + return CompatibleTypes(expected, underlyingBasic) } }