mirror of
https://github.com/ddidderr/wuffs.git
synced 2026-11-26 01:01:35 +01:00
Have cgen code call wuffs_base__status methods
This commit is contained in:
1 parent
78c363719f
commit
1e8438f43b
3 files changed
+6
-25
No files matched your search
@@ -324,6 +324,8 @@ func (g *gen) writeExprUserDefinedCall(b *buffer, n *a.Expr, rp replacementPolic
|
||||
recvTyp, addr := recv.MType(), "&"
|
||||
if p := recvTyp.Decorator(); p == t.IDNptr || p == t.IDPtr {
|
||||
recvTyp, addr = recvTyp.Inner(), ""
|
||||
} else if recvTyp.IsStatus() {
|
||||
addr = ""
|
||||
}
|
||||
if recvTyp.Decorator() != 0 {
|
||||
return fmt.Errorf("cannot generate user-defined method call %q for receiver type %q",
|
||||
|
||||
Reference in new issue
Block a user