Allow 'continue' statements in 'foreach' loops.
This commit is contained in:
7
tests_errors/foreach-assign.ispc
Normal file
7
tests_errors/foreach-assign.ispc
Normal file
@@ -0,0 +1,7 @@
|
||||
// Can't assign to type "const int32"
|
||||
|
||||
int foo() {
|
||||
foreach (i = 0 ... 10) {
|
||||
++i;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user