Merge Break and Continue as Jump.

This commit is contained in:
Nigel Tao committed 2017-05-14 11:45:58 +10:00
1 parent 23020e7d60
commit d9fc8a1114
3 files changed
+14 -35

No files matched your search

+1 -5
View File
@@ -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
}