TypeScript/tests/baselines/reference/for-of43.errors.txt
2015-02-26 18:17:44 -08:00

11 lines
429 B
Plaintext

tests/cases/conformance/es6/for-ofStatements/for-of43.ts(2,25): error TS2322: Type 'boolean' is not assignable to type 'number'.
==== tests/cases/conformance/es6/for-ofStatements/for-of43.ts (1 errors) ====
var array = [{ x: "", y: 0 }]
for (var {x: a = "", y: b = true} of array) {
~
!!! error TS2322: Type 'boolean' is not assignable to type 'number'.
a;
b;
}