TypeScript/tests/baselines/reference/declFileTypeofInAnonymousType.types

84 lines
1.6 KiB
Plaintext
Raw Normal View History

2014-08-15 23:33:16 +02:00
=== tests/cases/compiler/declFileTypeofInAnonymousType.ts ===
module m1 {
2014-08-28 21:40:58 +02:00
>m1 : typeof m1
2014-08-15 23:33:16 +02:00
export class c {
>c : c
}
export enum e {
>e : e
weekday,
>weekday : e
weekend,
>weekend : e
holiday
>holiday : e
}
}
var a: { c: m1.c; };
2014-08-25 19:36:12 +02:00
>a : { c: m1.c; }
>c : m1.c
2014-08-28 21:40:58 +02:00
>m1 : unknown
2014-08-25 19:36:12 +02:00
>c : m1.c
2014-08-15 23:33:16 +02:00
var b = {
2014-08-25 19:36:12 +02:00
>b : { c: typeof m1.c; m1: typeof m1; }
>{ c: m1.c, m1: m1} : { c: typeof m1.c; m1: typeof m1; }
2014-08-15 23:33:16 +02:00
c: m1.c,
2014-08-25 19:36:12 +02:00
>c : typeof m1.c
>m1.c : typeof m1.c
2014-08-15 23:33:16 +02:00
>m1 : typeof m1
2014-08-25 19:36:12 +02:00
>c : typeof m1.c
2014-08-15 23:33:16 +02:00
m1: m1
>m1 : typeof m1
2014-08-25 19:36:12 +02:00
>m1 : typeof m1
2014-08-15 23:33:16 +02:00
};
var c = { m1: m1 };
>c : { m1: typeof m1; }
>{ m1: m1 } : { m1: typeof m1; }
>m1 : typeof m1
2014-08-25 19:36:12 +02:00
>m1 : typeof m1
2014-08-15 23:33:16 +02:00
var d = {
2014-08-25 19:36:12 +02:00
>d : { m: { mod: typeof m1; }; mc: { cl: typeof m1.c; }; me: { en: typeof m1.e; }; mh: m1.e; }
>{ m: { mod: m1 }, mc: { cl: m1.c }, me: { en: m1.e }, mh: m1.e.holiday} : { m: { mod: typeof m1; }; mc: { cl: typeof m1.c; }; me: { en: typeof m1.e; }; mh: m1.e; }
2014-08-15 23:33:16 +02:00
m: { mod: m1 },
>m : { mod: typeof m1; }
>{ mod: m1 } : { mod: typeof m1; }
>mod : typeof m1
2014-08-25 19:36:12 +02:00
>m1 : typeof m1
2014-08-15 23:33:16 +02:00
mc: { cl: m1.c },
2014-08-25 19:36:12 +02:00
>mc : { cl: typeof m1.c; }
>{ cl: m1.c } : { cl: typeof m1.c; }
>cl : typeof m1.c
>m1.c : typeof m1.c
2014-08-15 23:33:16 +02:00
>m1 : typeof m1
2014-08-25 19:36:12 +02:00
>c : typeof m1.c
2014-08-15 23:33:16 +02:00
me: { en: m1.e },
2014-08-25 19:36:12 +02:00
>me : { en: typeof m1.e; }
>{ en: m1.e } : { en: typeof m1.e; }
>en : typeof m1.e
>m1.e : typeof m1.e
2014-08-15 23:33:16 +02:00
>m1 : typeof m1
2014-08-25 19:36:12 +02:00
>e : typeof m1.e
2014-08-15 23:33:16 +02:00
mh: m1.e.holiday
2014-08-25 19:36:12 +02:00
>mh : m1.e
>m1.e.holiday : m1.e
>m1.e : typeof m1.e
2014-08-15 23:33:16 +02:00
>m1 : typeof m1
2014-08-25 19:36:12 +02:00
>e : typeof m1.e
>holiday : m1.e
2014-08-15 23:33:16 +02:00
};