File: declarationEmitDestructuringArrayPattern2.errors.txt

package info (click to toggle)
node-typescript 3.3.3333-1
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 324,548 kB
  • sloc: makefile: 6; sh: 3
file content (22 lines) | stat: -rw-r--r-- 1,430 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
tests/cases/compiler/declarationEmitDestructuringArrayPattern2.ts(4,6): error TS2525: Initializer provides no value for this binding element and the binding element has no default value.
tests/cases/compiler/declarationEmitDestructuringArrayPattern2.ts(4,11): error TS2525: Initializer provides no value for this binding element and the binding element has no default value.
tests/cases/compiler/declarationEmitDestructuringArrayPattern2.ts(4,16): error TS2525: Initializer provides no value for this binding element and the binding element has no default value.


==== tests/cases/compiler/declarationEmitDestructuringArrayPattern2.ts (3 errors) ====
    var [x10, [y10, [z10]]] = [1, ["hello", [true]]];
    
    var [x11 = 0, y11 = ""] = [1, "hello"];
    var [a11, b11, c11] = [];
         ~~~
!!! error TS2525: Initializer provides no value for this binding element and the binding element has no default value.
              ~~~
!!! error TS2525: Initializer provides no value for this binding element and the binding element has no default value.
                   ~~~
!!! error TS2525: Initializer provides no value for this binding element and the binding element has no default value.
    
    var [a2, [b2, { x12, y12: c2 }]=["abc", { x12: 10, y12: false }]] = [1, ["hello", { x12: 5, y12: true }]];
    
    var [x13, y13] = [1, "hello"];
    var [a3, b3] = [[x13, y13], { x: x13, y: y13 }];