2015-04-07 01:24:55 +02:00
|
|
|
=== tests/cases/compiler/arrayBindingPatternOmittedExpressions.ts ===
|
2015-04-07 00:32:22 +02:00
|
|
|
|
|
|
|
var results: string[];
|
2015-04-13 23:01:57 +02:00
|
|
|
>results : string[], Symbol(results, Decl(arrayBindingPatternOmittedExpressions.ts, 1, 3))
|
2015-04-07 00:32:22 +02:00
|
|
|
|
|
|
|
{
|
|
|
|
let [, b, , a] = results;
|
2015-04-13 21:36:11 +02:00
|
|
|
> : undefined
|
2015-04-13 23:01:57 +02:00
|
|
|
>b : string, Symbol(b, Decl(arrayBindingPatternOmittedExpressions.ts, 4, 10))
|
2015-04-13 21:36:11 +02:00
|
|
|
> : undefined
|
2015-04-13 23:01:57 +02:00
|
|
|
>a : string, Symbol(a, Decl(arrayBindingPatternOmittedExpressions.ts, 4, 15))
|
|
|
|
>results : string[], Symbol(results, Decl(arrayBindingPatternOmittedExpressions.ts, 1, 3))
|
2015-04-07 00:32:22 +02:00
|
|
|
|
|
|
|
let x = {
|
2015-04-13 23:01:57 +02:00
|
|
|
>x : { a: string; b: string; }, Symbol(x, Decl(arrayBindingPatternOmittedExpressions.ts, 5, 7))
|
2015-04-07 00:32:22 +02:00
|
|
|
>{ a, b } : { a: string; b: string; }
|
|
|
|
|
|
|
|
a,
|
2015-04-13 23:01:57 +02:00
|
|
|
>a : string, Symbol(a, Decl(arrayBindingPatternOmittedExpressions.ts, 5, 13))
|
2015-04-07 00:32:22 +02:00
|
|
|
|
|
|
|
b
|
2015-04-13 23:01:57 +02:00
|
|
|
>b : string, Symbol(b, Decl(arrayBindingPatternOmittedExpressions.ts, 6, 10))
|
2015-04-07 00:32:22 +02:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
function f([, a, , b, , , , s, , , ] = results) {
|
2015-04-13 23:01:57 +02:00
|
|
|
>f : ([, a, , b, , , , s, , , ]?: string[]) => void, Symbol(f, Decl(arrayBindingPatternOmittedExpressions.ts, 9, 1))
|
2015-04-13 21:36:11 +02:00
|
|
|
> : undefined
|
2015-04-13 23:01:57 +02:00
|
|
|
>a : string, Symbol(a, Decl(arrayBindingPatternOmittedExpressions.ts, 12, 13))
|
2015-04-13 21:36:11 +02:00
|
|
|
> : undefined
|
2015-04-13 23:01:57 +02:00
|
|
|
>b : string, Symbol(b, Decl(arrayBindingPatternOmittedExpressions.ts, 12, 18))
|
2015-04-13 21:36:11 +02:00
|
|
|
> : undefined
|
|
|
|
> : undefined
|
|
|
|
> : undefined
|
2015-04-13 23:01:57 +02:00
|
|
|
>s : string, Symbol(s, Decl(arrayBindingPatternOmittedExpressions.ts, 12, 27))
|
2015-04-13 21:36:11 +02:00
|
|
|
> : undefined
|
|
|
|
> : undefined
|
2015-04-13 23:01:57 +02:00
|
|
|
>results : string[], Symbol(results, Decl(arrayBindingPatternOmittedExpressions.ts, 1, 3))
|
2015-04-07 00:32:22 +02:00
|
|
|
|
|
|
|
a = s[1];
|
|
|
|
>a = s[1] : string
|
2015-04-13 23:01:57 +02:00
|
|
|
>a : string, Symbol(a, Decl(arrayBindingPatternOmittedExpressions.ts, 12, 13))
|
2015-04-07 00:32:22 +02:00
|
|
|
>s[1] : string
|
2015-04-13 23:01:57 +02:00
|
|
|
>s : string, Symbol(s, Decl(arrayBindingPatternOmittedExpressions.ts, 12, 27))
|
2015-04-13 21:36:11 +02:00
|
|
|
>1 : number
|
2015-04-07 00:32:22 +02:00
|
|
|
|
|
|
|
b = s[2];
|
|
|
|
>b = s[2] : string
|
2015-04-13 23:01:57 +02:00
|
|
|
>b : string, Symbol(b, Decl(arrayBindingPatternOmittedExpressions.ts, 12, 18))
|
2015-04-07 00:32:22 +02:00
|
|
|
>s[2] : string
|
2015-04-13 23:01:57 +02:00
|
|
|
>s : string, Symbol(s, Decl(arrayBindingPatternOmittedExpressions.ts, 12, 27))
|
2015-04-13 21:36:11 +02:00
|
|
|
>2 : number
|
2015-04-07 00:32:22 +02:00
|
|
|
}
|