Make the "true" in "while true { etc }" mandatory.

This commit is contained in:
Nigel Tao committed 2017-05-14 11:38:10 +10:00
1 parent 1d3ae23418
commit 23020e7d60
3 files changed
+16 -24

No files matched your search

+2 -2
View File
@@ -283,8 +283,8 @@ func NewField(name t.ID, xType *TypeExpr) *Field {
}
}
// While is "while { List1 }" or "while LHS { List1 }":
// - LHS: <nil|Expr>
// While is "while LHS, List0 { List1 }":
// - LHS: <Expr>
// - List0: <Assert> asserts
// - List1: <*> loop body
type While Node