File: restElementWithNullInitializer.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 (22 lines) | stat: -rw-r--r-- 798 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
=== tests/cases/conformance/es6/destructuring/restElementWithNullInitializer.ts ===
function foo1([...r] = null) {
>foo1 : Symbol(foo1, Decl(restElementWithNullInitializer.ts, 0, 0))
>r : Symbol(r, Decl(restElementWithNullInitializer.ts, 0, 15))
}

function foo2([...r] = undefined) {
>foo2 : Symbol(foo2, Decl(restElementWithNullInitializer.ts, 1, 1))
>r : Symbol(r, Decl(restElementWithNullInitializer.ts, 3, 15))
>undefined : Symbol(undefined)
}

function foo3([...r] = {}) {
>foo3 : Symbol(foo3, Decl(restElementWithNullInitializer.ts, 4, 1))
>r : Symbol(r, Decl(restElementWithNullInitializer.ts, 6, 15))
}

function foo4([...r] = []) {
>foo4 : Symbol(foo4, Decl(restElementWithNullInitializer.ts, 7, 1))
>r : Symbol(r, Decl(restElementWithNullInitializer.ts, 9, 15))
}