46 lines
618 B
Text
46 lines
618 B
Text
|
=== tests/cases/conformance/classes/members/constructorFunctionTypes/classWithNoConstructorOrBaseClass.ts ===
|
||
|
class C {
|
||
|
>C : C
|
||
|
|
||
|
x: string;
|
||
|
>x : string
|
||
|
}
|
||
|
|
||
|
var c = new C();
|
||
|
>c : C
|
||
|
>new C() : C
|
||
|
>C : typeof C
|
||
|
|
||
|
var r = C;
|
||
|
>r : typeof C
|
||
|
>C : typeof C
|
||
|
|
||
|
class D<T,U> {
|
||
|
>D : D<T, U>
|
||
|
>T : T
|
||
|
>U : U
|
||
|
|
||
|
x: T;
|
||
|
>x : T
|
||
|
>T : T
|
||
|
|
||
|
y: U;
|
||
|
>y : U
|
||
|
>U : U
|
||
|
}
|
||
|
|
||
|
var d = new D();
|
||
|
>d : D<{}, {}>
|
||
|
>new D() : D<{}, {}>
|
||
|
>D : typeof D
|
||
|
|
||
|
var d2 = new D<string, number>();
|
||
|
>d2 : D<string, number>
|
||
|
>new D<string, number>() : D<string, number>
|
||
|
>D : typeof D
|
||
|
|
||
|
var r2 = D;
|
||
|
>r2 : typeof D
|
||
|
>D : typeof D
|
||
|
|