File: emitCapturingThisInTupleDestructuring1.symbols

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 (13 lines) | stat: -rw-r--r-- 684 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
=== tests/cases/compiler/emitCapturingThisInTupleDestructuring1.ts ===
declare function wrapper(x: any);
>wrapper : Symbol(wrapper, Decl(emitCapturingThisInTupleDestructuring1.ts, 0, 0))
>x : Symbol(x, Decl(emitCapturingThisInTupleDestructuring1.ts, 0, 25))

wrapper((array: [any]) => {
>wrapper : Symbol(wrapper, Decl(emitCapturingThisInTupleDestructuring1.ts, 0, 0))
>array : Symbol(array, Decl(emitCapturingThisInTupleDestructuring1.ts, 1, 9))

    [this.test, this.test1, this.test2] = array;  // even though there is a compiler error, we should still emit lexical capture for "this"
>array : Symbol(array, Decl(emitCapturingThisInTupleDestructuring1.ts, 1, 9))

});