75 lines
3.4 KiB
Plaintext
75 lines
3.4 KiB
Plaintext
=== tests/cases/compiler/spreadUnion2.ts ===
|
|
|
|
declare const undefinedUnion: { a: number } | undefined;
|
|
>undefinedUnion : Symbol(undefinedUnion, Decl(spreadUnion2.ts, 1, 13))
|
|
>a : Symbol(a, Decl(spreadUnion2.ts, 1, 31))
|
|
|
|
declare const nullUnion: { b: number } | null;
|
|
>nullUnion : Symbol(nullUnion, Decl(spreadUnion2.ts, 2, 13))
|
|
>b : Symbol(b, Decl(spreadUnion2.ts, 2, 26))
|
|
|
|
declare const nullAndUndefinedUnion: null | undefined;
|
|
>nullAndUndefinedUnion : Symbol(nullAndUndefinedUnion, Decl(spreadUnion2.ts, 3, 13))
|
|
|
|
var o1: { a: number };
|
|
>o1 : Symbol(o1, Decl(spreadUnion2.ts, 5, 3), Decl(spreadUnion2.ts, 6, 3))
|
|
>a : Symbol(a, Decl(spreadUnion2.ts, 5, 9))
|
|
|
|
var o1 = { ...undefinedUnion };
|
|
>o1 : Symbol(o1, Decl(spreadUnion2.ts, 5, 3), Decl(spreadUnion2.ts, 6, 3))
|
|
>undefinedUnion : Symbol(undefinedUnion, Decl(spreadUnion2.ts, 1, 13))
|
|
|
|
var o2: { b: number };
|
|
>o2 : Symbol(o2, Decl(spreadUnion2.ts, 8, 3), Decl(spreadUnion2.ts, 9, 3))
|
|
>b : Symbol(b, Decl(spreadUnion2.ts, 8, 9))
|
|
|
|
var o2 = { ...nullUnion };
|
|
>o2 : Symbol(o2, Decl(spreadUnion2.ts, 8, 3), Decl(spreadUnion2.ts, 9, 3))
|
|
>nullUnion : Symbol(nullUnion, Decl(spreadUnion2.ts, 2, 13))
|
|
|
|
var o3: { a: number, b: number };
|
|
>o3 : Symbol(o3, Decl(spreadUnion2.ts, 11, 3), Decl(spreadUnion2.ts, 12, 3), Decl(spreadUnion2.ts, 13, 3))
|
|
>a : Symbol(a, Decl(spreadUnion2.ts, 11, 9))
|
|
>b : Symbol(b, Decl(spreadUnion2.ts, 11, 20))
|
|
|
|
var o3 = { ...undefinedUnion, ...nullUnion };
|
|
>o3 : Symbol(o3, Decl(spreadUnion2.ts, 11, 3), Decl(spreadUnion2.ts, 12, 3), Decl(spreadUnion2.ts, 13, 3))
|
|
>undefinedUnion : Symbol(undefinedUnion, Decl(spreadUnion2.ts, 1, 13))
|
|
>nullUnion : Symbol(nullUnion, Decl(spreadUnion2.ts, 2, 13))
|
|
|
|
var o3 = { ...nullUnion, ...undefinedUnion };
|
|
>o3 : Symbol(o3, Decl(spreadUnion2.ts, 11, 3), Decl(spreadUnion2.ts, 12, 3), Decl(spreadUnion2.ts, 13, 3))
|
|
>nullUnion : Symbol(nullUnion, Decl(spreadUnion2.ts, 2, 13))
|
|
>undefinedUnion : Symbol(undefinedUnion, Decl(spreadUnion2.ts, 1, 13))
|
|
|
|
var o4: { a: number };
|
|
>o4 : Symbol(o4, Decl(spreadUnion2.ts, 15, 3), Decl(spreadUnion2.ts, 16, 3))
|
|
>a : Symbol(a, Decl(spreadUnion2.ts, 15, 9))
|
|
|
|
var o4 = { ...undefinedUnion, ...undefinedUnion };
|
|
>o4 : Symbol(o4, Decl(spreadUnion2.ts, 15, 3), Decl(spreadUnion2.ts, 16, 3))
|
|
>undefinedUnion : Symbol(undefinedUnion, Decl(spreadUnion2.ts, 1, 13))
|
|
>undefinedUnion : Symbol(undefinedUnion, Decl(spreadUnion2.ts, 1, 13))
|
|
|
|
var o5: { b: number };
|
|
>o5 : Symbol(o5, Decl(spreadUnion2.ts, 18, 3), Decl(spreadUnion2.ts, 19, 3))
|
|
>b : Symbol(b, Decl(spreadUnion2.ts, 18, 9))
|
|
|
|
var o5 = { ...nullUnion, ...nullUnion };
|
|
>o5 : Symbol(o5, Decl(spreadUnion2.ts, 18, 3), Decl(spreadUnion2.ts, 19, 3))
|
|
>nullUnion : Symbol(nullUnion, Decl(spreadUnion2.ts, 2, 13))
|
|
>nullUnion : Symbol(nullUnion, Decl(spreadUnion2.ts, 2, 13))
|
|
|
|
var o6: { };
|
|
>o6 : Symbol(o6, Decl(spreadUnion2.ts, 21, 3), Decl(spreadUnion2.ts, 22, 3), Decl(spreadUnion2.ts, 23, 3))
|
|
|
|
var o6 = { ...nullAndUndefinedUnion, ...nullAndUndefinedUnion };
|
|
>o6 : Symbol(o6, Decl(spreadUnion2.ts, 21, 3), Decl(spreadUnion2.ts, 22, 3), Decl(spreadUnion2.ts, 23, 3))
|
|
>nullAndUndefinedUnion : Symbol(nullAndUndefinedUnion, Decl(spreadUnion2.ts, 3, 13))
|
|
>nullAndUndefinedUnion : Symbol(nullAndUndefinedUnion, Decl(spreadUnion2.ts, 3, 13))
|
|
|
|
var o6 = { ...nullAndUndefinedUnion };
|
|
>o6 : Symbol(o6, Decl(spreadUnion2.ts, 21, 3), Decl(spreadUnion2.ts, 22, 3), Decl(spreadUnion2.ts, 23, 3))
|
|
>nullAndUndefinedUnion : Symbol(nullAndUndefinedUnion, Decl(spreadUnion2.ts, 3, 13))
|
|
|