diff --git a/cl/classfile.go b/cl/classfile.go index 103f36fc7..e3490163b 100644 --- a/cl/classfile.go +++ b/cl/classfile.go @@ -120,7 +120,7 @@ func spxTryRef(spx *gox.PkgRef, typ string) (obj types.Object, isPtr bool) { if strings.HasPrefix(typ, "*") { typ, isPtr = typ[1:], true } - obj = spx.Ref(typ) + obj = spx.TryRef(typ) return }