mirror of
https://github.com/ddidderr/wuffs.git
synced 2026-11-21 08:47:28 +01:00
Allow empty-but-suspendible methods
This commit is contained in:
1 parent
9cc6964c30
commit
f7dfe8c4c2
5 files changed
+20
No files matched your search
@@ -293,6 +293,7 @@ func (g *gen) writeFuncImplBodySuspend(b *buffer) error {
|
||||
|
||||
func (g *gen) writeFuncImplFooter(b *buffer) error {
|
||||
if g.currFunk.suspendible {
|
||||
b.writes("goto exit;\n") // Avoid the "unused label" warning.
|
||||
b.writes("exit:")
|
||||
|
||||
for _, o := range g.currFunk.astFunc.In().Fields() {
|
||||
|
||||
Reference in new issue
Block a user