2014-08-15 23:33:16 +02:00
|
|
|
=== tests/cases/conformance/interfaces/interfaceDeclarations/interfaceWithPropertyOfEveryType.ts ===
|
|
|
|
class C { foo: string; }
|
|
|
|
>C : C
|
|
|
|
>foo : string
|
|
|
|
|
|
|
|
function f1() { }
|
2014-08-28 21:52:44 +02:00
|
|
|
>f1 : () => void
|
2014-08-15 23:33:16 +02:00
|
|
|
|
|
|
|
module M {
|
2014-08-28 21:40:58 +02:00
|
|
|
>M : typeof M
|
2014-08-15 23:33:16 +02:00
|
|
|
|
|
|
|
export var y = 1;
|
|
|
|
>y : number
|
|
|
|
}
|
|
|
|
enum E { A }
|
|
|
|
>E : E
|
|
|
|
>A : E
|
|
|
|
|
|
|
|
interface Foo {
|
|
|
|
>Foo : Foo
|
|
|
|
|
|
|
|
a: number;
|
|
|
|
>a : number
|
|
|
|
|
|
|
|
b: string;
|
|
|
|
>b : string
|
|
|
|
|
|
|
|
c: boolean;
|
|
|
|
>c : boolean
|
|
|
|
|
|
|
|
d: any;
|
|
|
|
>d : any
|
|
|
|
|
|
|
|
e: void;
|
|
|
|
>e : void
|
|
|
|
|
|
|
|
f: number[];
|
|
|
|
>f : number[]
|
|
|
|
|
|
|
|
g: Object;
|
|
|
|
>g : Object
|
|
|
|
>Object : Object
|
|
|
|
|
|
|
|
h: (x: number) => number;
|
|
|
|
>h : (x: number) => number
|
|
|
|
>x : number
|
|
|
|
|
|
|
|
i: <T>(x: T) => T;
|
|
|
|
>i : <T>(x: T) => T
|
|
|
|
>T : T
|
|
|
|
>x : T
|
|
|
|
>T : T
|
|
|
|
>T : T
|
|
|
|
|
|
|
|
j: Foo;
|
|
|
|
>j : Foo
|
|
|
|
>Foo : Foo
|
|
|
|
|
|
|
|
k: C;
|
|
|
|
>k : C
|
|
|
|
>C : C
|
|
|
|
|
|
|
|
l: typeof f1;
|
2014-08-28 21:52:44 +02:00
|
|
|
>l : () => void
|
|
|
|
>f1 : () => void
|
2014-08-15 23:33:16 +02:00
|
|
|
|
|
|
|
m: typeof M;
|
|
|
|
>m : typeof M
|
|
|
|
>M : typeof M
|
|
|
|
|
|
|
|
n: {};
|
|
|
|
>n : {}
|
|
|
|
|
|
|
|
o: E;
|
|
|
|
>o : E
|
|
|
|
>E : E
|
|
|
|
}
|
|
|
|
|
|
|
|
var a: Foo = {
|
|
|
|
>a : Foo
|
|
|
|
>Foo : Foo
|
2014-08-28 21:52:44 +02:00
|
|
|
>{ a: 1, b: '', c: true, d: {}, e: null , f: [1], g: {}, h: (x: number) => 1, i: <T>(x: T) => x, j: <Foo>null, k: new C(), l: f1, m: M, n: {}, o: E.A} : { a: number; b: string; c: boolean; d: {}; e: null; f: number[]; g: {}; h: (x: number) => number; i: <T>(x: T) => T; j: Foo; k: C; l: () => void; m: typeof M; n: {}; o: E; }
|
2014-08-15 23:33:16 +02:00
|
|
|
|
|
|
|
a: 1,
|
|
|
|
>a : number
|
|
|
|
|
|
|
|
b: '',
|
|
|
|
>b : string
|
|
|
|
|
|
|
|
c: true,
|
|
|
|
>c : boolean
|
|
|
|
|
|
|
|
d: {},
|
|
|
|
>d : {}
|
|
|
|
>{} : {}
|
|
|
|
|
|
|
|
e: null ,
|
2014-09-10 21:58:30 +02:00
|
|
|
>e : null
|
2014-08-15 23:33:16 +02:00
|
|
|
|
|
|
|
f: [1],
|
|
|
|
>f : number[]
|
|
|
|
>[1] : number[]
|
|
|
|
|
|
|
|
g: {},
|
|
|
|
>g : {}
|
|
|
|
>{} : {}
|
|
|
|
|
|
|
|
h: (x: number) => 1,
|
|
|
|
>h : (x: number) => number
|
|
|
|
>(x: number) => 1 : (x: number) => number
|
|
|
|
>x : number
|
|
|
|
|
|
|
|
i: <T>(x: T) => x,
|
|
|
|
>i : <T>(x: T) => T
|
|
|
|
><T>(x: T) => x : <T>(x: T) => T
|
|
|
|
>T : T
|
|
|
|
>x : T
|
|
|
|
>T : T
|
|
|
|
>x : T
|
|
|
|
|
|
|
|
j: <Foo>null,
|
|
|
|
>j : Foo
|
|
|
|
><Foo>null : Foo
|
|
|
|
>Foo : Foo
|
|
|
|
|
|
|
|
k: new C(),
|
|
|
|
>k : C
|
|
|
|
>new C() : C
|
|
|
|
>C : typeof C
|
|
|
|
|
|
|
|
l: f1,
|
2014-08-28 21:52:44 +02:00
|
|
|
>l : () => void
|
|
|
|
>f1 : () => void
|
2014-08-15 23:33:16 +02:00
|
|
|
|
|
|
|
m: M,
|
|
|
|
>m : typeof M
|
2014-08-25 19:36:12 +02:00
|
|
|
>M : typeof M
|
2014-08-15 23:33:16 +02:00
|
|
|
|
|
|
|
n: {},
|
|
|
|
>n : {}
|
|
|
|
>{} : {}
|
|
|
|
|
|
|
|
o: E.A
|
|
|
|
>o : E
|
|
|
|
>E.A : E
|
|
|
|
>E : typeof E
|
|
|
|
>A : E
|
|
|
|
}
|