Skip to content

Commit

Permalink
spxTryRef bugfix: use spx.TryRef
Browse files Browse the repository at this point in the history
  • Loading branch information
xushiwei committed Jan 7, 2024
1 parent cbdeac7 commit 6071114
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cl/classfile.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}

Expand Down

0 comments on commit 6071114

Please sign in to comment.