mirror of
https://github.com/ddidderr/wuffs.git
synced 2026-11-22 00:47:28 +01:00
Merge Break and Continue as Jump.
This commit is contained in:
1 parent
23020e7d60
commit
d9fc8a1114
3 files changed
+14
-35
No files matched your search
+1
-5
@@ -124,11 +124,7 @@ func (c *typeChecker) checkStatement(n *a.Node) error {
|
||||
}
|
||||
return nil
|
||||
|
||||
case a.KBreak:
|
||||
// TODO: check that we're in a for loop.
|
||||
return nil
|
||||
|
||||
case a.KContinue:
|
||||
case a.KJump:
|
||||
// TODO: check that we're in a for loop.
|
||||
return nil
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user