Skip to content

Commit 6fbd665

Browse files
authored
bind: improve error reporting for python incompatible methods
* improve error reporting * remove spurious printf
1 parent 9e8b816 commit 6fbd665

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

bind/symbols.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1115,6 +1115,9 @@ func (sym *symtab) addSignatureType(pkg *types.Package, obj types.Object, t type
11151115
func (sym *symtab) addMethod(pkg *types.Package, obj types.Object, t types.Type, kind symkind, id, n string) error {
11161116
sig := t.Underlying().(*types.Signature)
11171117
_, _, _, err := isPyCompatFunc(sig)
1118+
if err != nil {
1119+
fmt.Printf("ignoring python incompatible method: %v.%v: %v: %v\n", pkg.Name(), obj.Name(), t.String(), err)
1120+
}
11181121
if err == nil {
11191122
fn := types.ObjectString(obj, nil)
11201123
kind |= skFunc

0 commit comments

Comments
 (0)