File: infiniteExpansionThroughInstantiation2.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-- 1,169 bytes parent folder | download | duplicates (7)
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/types/typeRelationships/recursiveTypes/infiniteExpansionThroughInstantiation2.ts ===
// instantiating a derived type can cause an infinitely expanding type reference to be generated
// which could be used in an assignment check for constraint satisfaction

interface AA<T extends AA<T>> // now an error due to referencing type parameter in constraint
>AA : Symbol(AA, Decl(infiniteExpansionThroughInstantiation2.ts, 0, 0))
>T : Symbol(T, Decl(infiniteExpansionThroughInstantiation2.ts, 3, 13))
>AA : Symbol(AA, Decl(infiniteExpansionThroughInstantiation2.ts, 0, 0))
>T : Symbol(T, Decl(infiniteExpansionThroughInstantiation2.ts, 3, 13))
{
    x: T
>x : Symbol(AA.x, Decl(infiniteExpansionThroughInstantiation2.ts, 4, 1))
>T : Symbol(T, Decl(infiniteExpansionThroughInstantiation2.ts, 3, 13))
}

interface BB extends AA<AA<BB>>
>BB : Symbol(BB, Decl(infiniteExpansionThroughInstantiation2.ts, 6, 1))
>AA : Symbol(AA, Decl(infiniteExpansionThroughInstantiation2.ts, 0, 0))
>AA : Symbol(AA, Decl(infiniteExpansionThroughInstantiation2.ts, 0, 0))
>BB : Symbol(BB, Decl(infiniteExpansionThroughInstantiation2.ts, 6, 1))
{
}