File: declarationEmitExpressionInExtends2.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 (32 lines) | stat: -rw-r--r-- 461 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
=== tests/cases/compiler/declarationEmitExpressionInExtends2.ts ===

class C<T, U> {
>C : C<T, U>
>T : T
>U : U

    x: T;
>x : T
>T : T

    y: U;
>y : U
>U : U
}

function getClass<T>(c: T) {
>getClass : <T>(c: T) => typeof C
>T : T
>c : T
>T : T

    return C;
>C : typeof C
}

class MyClass extends getClass(2) <string, number> {
>MyClass : MyClass
>getClass(2) : C<string, number>
>getClass : <T>(c: T) => typeof C
>2 : 2
}