2014-09-12 22:35:07 +02:00
|
|
|
tests/cases/compiler/for.ts(29,6): error TS1109: Expression expected.
|
|
|
|
|
|
|
|
|
2014-07-13 01:04:16 +02:00
|
|
|
==== tests/cases/compiler/for.ts (1 errors) ====
|
|
|
|
for (var i = 0; i < 10; i++) { // ok
|
|
|
|
var x1 = i;
|
|
|
|
}
|
|
|
|
|
|
|
|
for (var j: number = 0; j < 10; j++) { // ok
|
|
|
|
var x2 = j;
|
|
|
|
}
|
|
|
|
|
|
|
|
for (var k = 0; k < 10;) { // ok
|
|
|
|
k++;
|
|
|
|
}
|
|
|
|
|
|
|
|
for (; i < 10;) { // ok
|
|
|
|
i++;
|
|
|
|
}
|
|
|
|
|
|
|
|
for (; i > 1; i--) { // ok
|
|
|
|
}
|
|
|
|
|
|
|
|
for (var l = 0; ; l++) { // ok
|
|
|
|
if (l > 10) {
|
|
|
|
break;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
for (; ;) { // ok
|
|
|
|
}
|
|
|
|
|
|
|
|
for () { // error
|
|
|
|
~
|
2014-09-12 00:19:57 +02:00
|
|
|
!!! error TS1109: Expression expected.
|
2014-07-13 01:04:16 +02:00
|
|
|
}
|