TypeScript/tests/baselines/reference/incrementOnTypeParameter.errors.txt
2014-07-12 17:30:19 -07:00

14 lines
450 B
Plaintext

==== tests/cases/compiler/incrementOnTypeParameter.ts (2 errors) ====
class C<T> {
a: T;
foo() {
this.a++;
~~~~~~
!!! An arithmetic operand must be of type 'any', 'number' or an enum type.
for (var i: T, j = 0; j < 10; i++) {
~
!!! An arithmetic operand must be of type 'any', 'number' or an enum type.
}
}
}