mirror of
https://github.com/microsoft/TypeScript.git
synced 2026-02-15 11:35:42 -06:00
Change a test to be more interesting
This commit is contained in:
parent
61cd2a7543
commit
32aee67c4f
@ -1,7 +1,7 @@
|
||||
tests/cases/conformance/statements/for-ofStatements/ES5For-of12.ts(1,6): error TS2461: Type 'undefined' is not an array type.
|
||||
tests/cases/conformance/statements/for-ofStatements/ES5For-of12.ts(1,7): error TS2364: Invalid left-hand side of assignment expression.
|
||||
|
||||
|
||||
==== tests/cases/conformance/statements/for-ofStatements/ES5For-of12.ts (1 errors) ====
|
||||
for ([""] of []) { }
|
||||
~~~~
|
||||
!!! error TS2461: Type 'undefined' is not an array type.
|
||||
for ([""] of [[""]]) { }
|
||||
~~
|
||||
!!! error TS2364: Invalid left-hand side of assignment expression.
|
||||
@ -1,7 +1,11 @@
|
||||
//// [ES5For-of12.ts]
|
||||
for ([""] of []) { }
|
||||
for ([""] of [[""]]) { }
|
||||
|
||||
//// [ES5For-of12.js]
|
||||
for (var _i = 0, _a = []; _i < _a.length; _i++) {
|
||||
for (var _i = 0, _a = [
|
||||
[
|
||||
""
|
||||
]
|
||||
]; _i < _a.length; _i++) {
|
||||
"" = _a[_i][0];
|
||||
}
|
||||
|
||||
@ -1 +1 @@
|
||||
for ([""] of []) { }
|
||||
for ([""] of [[""]]) { }
|
||||
Loading…
x
Reference in New Issue
Block a user