File: infinitelyExpandingTypesNonGenericBase.types

package info (click to toggle)
node-typescript 2.1.5-1~bpo8%2B1
  • links: PTS, VCS
  • area: main
  • in suites: jessie-backports
  • size: 203,960 kB
  • sloc: sh: 11; makefile: 5
file content (56 lines) | stat: -rw-r--r-- 948 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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
=== tests/cases/compiler/infinitelyExpandingTypesNonGenericBase.ts ===
class Functionality<V> {
>Functionality : Functionality<V>
>V : V

    property: Options<V>;
>property : Options<V>
>Options : Options<T>
>V : V
}

class Base {
>Base : Base
}

class A<T> extends Base {
>A : A<T>
>T : T
>Base : Base

    options: Options<Functionality<T>[]>;
>options : Options<Functionality<T>[]>
>Options : Options<T>
>Functionality : Functionality<V>
>T : T
}

interface OptionsBase<T> {
>OptionsBase : OptionsBase<T>
>T : T

    Options: Options<T>;
>Options : Options<T>
>Options : Options<T>
>T : T
}

interface Options<T> extends OptionsBase<T> {
>Options : Options<T>
>T : T
>OptionsBase : OptionsBase<T>
>T : T
}


function o(type: new () => Base) {
>o : (type: new () => Base) => void
>type : new () => Base
>Base : Base
}

o(A);
>o(A) : void
>o : (type: new () => Base) => void
>A : typeof A