mirror of
https://github.com/ddidderr/wuffs.git
synced 2026-11-22 00:47:28 +01:00
Add an implicit coroutine_resumed variable
This commit is contained in:
1 parent
89c136ebe4
commit
1af543866c
4 files changed
+19
-6
No files matched your search
+2
-1
@@ -484,7 +484,8 @@ func (c *Checker) checkFuncSignature(node *a.Node) error {
|
||||
inTyp.AsNode().SetMType(typeExprTypeExpr)
|
||||
|
||||
localVars := typeMap{
|
||||
t.IDArgs: inTyp,
|
||||
t.IDArgs: inTyp,
|
||||
t.IDCoroutineResumed: typeExprBool,
|
||||
}
|
||||
if qqid[1] != 0 {
|
||||
if _, ok := c.structs[t.QID{qqid[0], qqid[1]}]; !ok {
|
||||
|
||||
Reference in new issue
Block a user