Check the for-loop condition has boolean type.

This commit is contained in:
Nigel Tao committed 2017-05-13 10:23:21 +10:00
1 parent c3c600627b
commit 87dcd9ed55
2 files changed
+7 -1

No files matched your search

+3
View File
@@ -59,6 +59,9 @@ func TestCheck(t *testing.T) {
b = not true
y = x as i32
for x > 0 {
}
}
`) + "\n"