File: localTypes5.types

package info (click to toggle)
node-typescript 2.1.5-1
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 203,952 kB
  • ctags: 52,987
  • sloc: sh: 11; makefile: 5
file content (47 lines) | stat: -rw-r--r-- 1,394 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
=== tests/cases/conformance/types/localTypes/localTypes5.ts ===
function foo<A>() {
>foo : <A>() => X.m<number, boolean>.<Date>.Y<string>
>A : A

    class X {
>X : X

        m<B, C>() {
>m : <B, C>() => <Date>.Y<string>
>B : B
>C : C

            return (function <D>() {
>(function <D>() {                class Y<E> {                }                return new Y<string>();            })<Date>() : <Date>.Y<string>
>(function <D>() {                class Y<E> {                }                return new Y<string>();            }) : <D>() => Y<string>
>function <D>() {                class Y<E> {                }                return new Y<string>();            } : <D>() => Y<string>
>D : D

                class Y<E> {
>Y : Y<E>
>E : E
                }
                return new Y<string>();
>new Y<string>() : Y<string>
>Y : typeof Y

            })<Date>();
>Date : Date
        }
    }
    var x = new X();
>x : X
>new X() : X
>X : typeof X

    return x.m<number, boolean>();
>x.m<number, boolean>() : X.m<number, boolean>.<Date>.Y<string>
>x.m : <B, C>() => X.m<B, C>.<Date>.Y<string>
>x : X
>m : <B, C>() => X.m<B, C>.<Date>.Y<string>
}
var x = foo<void>();
>x : foo<void>.X.m<number, boolean>.<Date>.Y<string>
>foo<void>() : foo<void>.X.m<number, boolean>.<Date>.Y<string>
>foo : <A>() => X.m<number, boolean>.<Date>.Y<string>