@@ -12,6 +12,38 @@ return ____exports"
1212
1313exports [` forin[Array]: diagnostics 1` ] = ` "main.ts(3,9): error TSTL: Iterating over arrays with 'for ... in' is not allowed."` ;
1414
15+ exports [` forof object destructuring ({ " initializer" : " {a, b}" , " vars" : " let a: string, b: string;" } ): code 1` ] = `
16+ "local a
17+ local b
18+ for ____, ____value in ipairs(arr) do
19+ end"
20+ ` ;
21+
22+ exports [` forof object destructuring ({ " initializer" : " {a, b}" , " vars" : " let a: string, b: string;" } ): diagnostics 1` ] = ` "main.ts(4,14): error TSTL: Unsupported object destructuring in for...of statement."` ;
23+
24+ exports [` forof object destructuring ({ " initializer" : " {a: c, b: d}" , " vars" : " let c: string, d: string;" } ): code 1` ] = `
25+ "local c
26+ local d
27+ for ____, ____value in ipairs(arr) do
28+ end"
29+ ` ;
30+
31+ exports [` forof object destructuring ({ " initializer" : " {a: c, b: d}" , " vars" : " let c: string, d: string;" } ): diagnostics 1` ] = ` "main.ts(4,14): error TSTL: Unsupported object destructuring in for...of statement."` ;
32+
33+ exports [` forof object destructuring ({ " initializer" : " const {a, b}" , " vars" : " " } ): code 1` ] = `
34+ "for ____, ____values in ipairs(arr) do
35+ end"
36+ ` ;
37+
38+ exports [` forof object destructuring ({ " initializer" : " const {a, b}" , " vars" : " " } ): diagnostics 1` ] = ` "main.ts(4,14): error TSTL: Unsupported object destructuring in for...of statement."` ;
39+
40+ exports [` forof object destructuring ({ " initializer" : " const {a: x, b: y}" , " vars" : " " } ): code 1` ] = `
41+ "for ____, ____values in ipairs(arr) do
42+ end"
43+ ` ;
44+
45+ exports [` forof object destructuring ({ " initializer" : " const {a: x, b: y}" , " vars" : " " } ): diagnostics 1` ] = ` "main.ts(4,14): error TSTL: Unsupported object destructuring in for...of statement."` ;
46+
1547exports [` loop continue (do { continue ; } while (false)) [5.1]: code 1` ] = `
1648"repeat
1749 do
0 commit comments