From 9da262c92189e4007834bf2023f0c032f2a1a0d9 Mon Sep 17 00:00:00 2001 From: Runxi Yu Date: Sun, 29 Mar 2026 10:55:24 +0000 Subject: object{,/type}: Fix up API shape --- errors/type.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'errors/type.go') diff --git a/errors/type.go b/errors/type.go index 19bdf3cd..bf3ba110 100644 --- a/errors/type.go +++ b/errors/type.go @@ -17,12 +17,12 @@ type ObjectTypeError struct { // Error implements error. func (e *ObjectTypeError) Error() string { - gotName, gotOK := objecttype.Name(e.Got) + gotName, gotOK := e.Got.Name() if !gotOK { gotName = fmt.Sprintf("type(%d)", e.Got) } - wantName, wantOK := objecttype.Name(e.Want) + wantName, wantOK := e.Want.Name() if !wantOK { wantName = fmt.Sprintf("type(%d)", e.Want) } -- cgit v1.3.1-10-gc9f91