mirror of
https://github.com/ddidderr/wuffs.git
synced 2026-11-26 17:01:35 +01:00
Have cgen look for !?? methods not ? methods
This commit is contained in:
1 parent
2100a9f837
commit
5cca9471ec
4 files changed
+10
-19
No files matched your search
@@ -669,8 +669,7 @@ func (g *gen) writeStruct(b *buffer, n *a.Struct) error {
|
||||
continue
|
||||
}
|
||||
o := tld.AsFunc()
|
||||
// XXX: s/Optional/Coroutine/
|
||||
if o.Receiver() != n.QID() || !o.Effect().Optional() {
|
||||
if o.Receiver() != n.QID() || !o.Effect().Coroutine() {
|
||||
continue
|
||||
}
|
||||
k := g.funks[o.QQID()]
|
||||
|
||||
Reference in new issue
Block a user