File: equalityWithtNullishCoalescingAssignment%28strict%3Dtrue%29.symbols

package info (click to toggle)
node-typescript 5.0.4%2Bds1-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 459,140 kB
  • sloc: javascript: 1,972,754; makefile: 6; sh: 1
file content (41 lines) | stat: -rw-r--r-- 1,546 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
=== tests/cases/conformance/types/typeRelationships/comparable/equalityWithtNullishCoalescingAssignment.ts ===
function f1(a?: boolean): void {
>f1 : Symbol(f1, Decl(equalityWithtNullishCoalescingAssignment.ts, 0, 0))
>a : Symbol(a, Decl(equalityWithtNullishCoalescingAssignment.ts, 0, 12))

    a ??= true;
>a : Symbol(a, Decl(equalityWithtNullishCoalescingAssignment.ts, 0, 12))

    if (a === false) {
>a : Symbol(a, Decl(equalityWithtNullishCoalescingAssignment.ts, 0, 12))

        console.log(a);
>console.log : Symbol(Console.log, Decl(lib.dom.d.ts, --, --))
>console : Symbol(console, Decl(lib.dom.d.ts, --, --))
>log : Symbol(Console.log, Decl(lib.dom.d.ts, --, --))
>a : Symbol(a, Decl(equalityWithtNullishCoalescingAssignment.ts, 0, 12))
    }
}
f1(false);
>f1 : Symbol(f1, Decl(equalityWithtNullishCoalescingAssignment.ts, 0, 0))

function f2() {
>f2 : Symbol(f2, Decl(equalityWithtNullishCoalescingAssignment.ts, 7, 10))

    let x: 0 | 1 | 2 | 3 = 0 as any;
>x : Symbol(x, Decl(equalityWithtNullishCoalescingAssignment.ts, 10, 7))

    x ??= 1;
>x : Symbol(x, Decl(equalityWithtNullishCoalescingAssignment.ts, 10, 7))

    if (x === 0) {
>x : Symbol(x, Decl(equalityWithtNullishCoalescingAssignment.ts, 10, 7))

        console.log(x);
>console.log : Symbol(Console.log, Decl(lib.dom.d.ts, --, --))
>console : Symbol(console, Decl(lib.dom.d.ts, --, --))
>log : Symbol(Console.log, Decl(lib.dom.d.ts, --, --))
>x : Symbol(x, Decl(equalityWithtNullishCoalescingAssignment.ts, 10, 7))
    }
}