File: privatePropertyInUnion.symbols

package info (click to toggle)
node-typescript 4.9.5%2Bds1-2
  • links: PTS, VCS
  • area: main
  • in suites: sid, trixie
  • size: 533,908 kB
  • sloc: javascript: 2,018,330; makefile: 7; sh: 1
file content (32 lines) | stat: -rw-r--r-- 1,537 bytes parent folder | download | duplicates (4)
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
=== tests/cases/compiler/privatePropertyInUnion.ts ===
// Repro from #38236

type Type = string | object;
>Type : Symbol(Type, Decl(privatePropertyInUnion.ts, 0, 0))

class SyncableObject {
>SyncableObject : Symbol(SyncableObject, Decl(privatePropertyInUnion.ts, 2, 28))

  private foo: unknown;
>foo : Symbol(SyncableObject.foo, Decl(privatePropertyInUnion.ts, 4, 22))
}

interface SyncableRef<T extends ISyncableObject> {}
>SyncableRef : Symbol(SyncableRef, Decl(privatePropertyInUnion.ts, 6, 1))
>T : Symbol(T, Decl(privatePropertyInUnion.ts, 8, 22))
>ISyncableObject : Symbol(ISyncableObject, Decl(privatePropertyInUnion.ts, 8, 51))

interface ISyncableObject<T = object> extends SyncableObject {}
>ISyncableObject : Symbol(ISyncableObject, Decl(privatePropertyInUnion.ts, 8, 51))
>T : Symbol(T, Decl(privatePropertyInUnion.ts, 10, 26))
>SyncableObject : Symbol(SyncableObject, Decl(privatePropertyInUnion.ts, 2, 28))

type __ValueDescriptorType<T extends string | object> = T extends ISyncableObject ? SyncableRef<T> : T;
>__ValueDescriptorType : Symbol(__ValueDescriptorType, Decl(privatePropertyInUnion.ts, 10, 63))
>T : Symbol(T, Decl(privatePropertyInUnion.ts, 12, 27))
>T : Symbol(T, Decl(privatePropertyInUnion.ts, 12, 27))
>ISyncableObject : Symbol(ISyncableObject, Decl(privatePropertyInUnion.ts, 8, 51))
>SyncableRef : Symbol(SyncableRef, Decl(privatePropertyInUnion.ts, 6, 1))
>T : Symbol(T, Decl(privatePropertyInUnion.ts, 12, 27))
>T : Symbol(T, Decl(privatePropertyInUnion.ts, 12, 27))