Skip to content

Commit 32aee67

Browse files
committed
Change a test to be more interesting
1 parent 61cd2a7 commit 32aee67

3 files changed

Lines changed: 11 additions & 7 deletions

File tree

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
tests/cases/conformance/statements/for-ofStatements/ES5For-of12.ts(1,6): error TS2461: Type 'undefined' is not an array type.
1+
tests/cases/conformance/statements/for-ofStatements/ES5For-of12.ts(1,7): error TS2364: Invalid left-hand side of assignment expression.
22

33

44
==== tests/cases/conformance/statements/for-ofStatements/ES5For-of12.ts (1 errors) ====
5-
for ([""] of []) { }
6-
~~~~
7-
!!! error TS2461: Type 'undefined' is not an array type.
5+
for ([""] of [[""]]) { }
6+
~~
7+
!!! error TS2364: Invalid left-hand side of assignment expression.
Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,11 @@
11
//// [ES5For-of12.ts]
2-
for ([""] of []) { }
2+
for ([""] of [[""]]) { }
33

44
//// [ES5For-of12.js]
5-
for (var _i = 0, _a = []; _i < _a.length; _i++) {
5+
for (var _i = 0, _a = [
6+
[
7+
""
8+
]
9+
]; _i < _a.length; _i++) {
610
"" = _a[_i][0];
711
}
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
for ([""] of []) { }
1+
for ([""] of [[""]]) { }

0 commit comments

Comments
 (0)