2014-11-11 03:28:05 +01:00
|
|
|
=== tests/cases/compiler/declFileTypeAnnotationTypeAlias.ts ===
|
|
|
|
|
|
|
|
module M {
|
2015-04-16 01:44:20 +02:00
|
|
|
>M : typeof M
|
2014-11-11 03:28:05 +01:00
|
|
|
|
|
|
|
export type Value = string | number | boolean;
|
2015-04-16 01:44:20 +02:00
|
|
|
>Value : string | number | boolean
|
2014-11-11 03:28:05 +01:00
|
|
|
|
|
|
|
export var x: Value;
|
2015-04-16 01:44:20 +02:00
|
|
|
>x : string | number | boolean
|
|
|
|
>Value : string | number | boolean
|
2014-11-11 03:28:05 +01:00
|
|
|
|
|
|
|
export class c {
|
2015-04-16 01:44:20 +02:00
|
|
|
>c : c
|
2014-11-11 03:28:05 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
export type C = c;
|
2015-04-16 01:44:20 +02:00
|
|
|
>C : c
|
|
|
|
>c : c
|
2014-11-11 03:28:05 +01:00
|
|
|
|
|
|
|
export module m {
|
2015-04-16 01:44:20 +02:00
|
|
|
>m : typeof m
|
2014-11-11 03:28:05 +01:00
|
|
|
|
|
|
|
export class c {
|
2015-04-16 01:44:20 +02:00
|
|
|
>c : c
|
2014-11-11 03:28:05 +01:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
export type MC = m.c;
|
2015-04-16 01:44:20 +02:00
|
|
|
>MC : m.c
|
|
|
|
>m : any
|
|
|
|
>c : m.c
|
2014-11-11 03:28:05 +01:00
|
|
|
|
|
|
|
export type fc = () => c;
|
2015-04-16 01:44:20 +02:00
|
|
|
>fc : () => c
|
|
|
|
>c : c
|
2014-11-11 03:28:05 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
interface Window {
|
2015-04-16 01:44:20 +02:00
|
|
|
>Window : Window
|
2014-11-11 03:28:05 +01:00
|
|
|
|
|
|
|
someMethod();
|
2015-04-16 01:44:20 +02:00
|
|
|
>someMethod : () => any
|
2014-11-11 03:28:05 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
module M {
|
2015-04-16 01:44:20 +02:00
|
|
|
>M : typeof M
|
2014-11-11 03:28:05 +01:00
|
|
|
|
|
|
|
export type W = Window | string;
|
2015-04-16 01:44:20 +02:00
|
|
|
>W : string | Window
|
|
|
|
>Window : Window
|
2014-11-11 03:28:05 +01:00
|
|
|
|
|
|
|
export module N {
|
2015-04-16 01:44:20 +02:00
|
|
|
>N : typeof N
|
2014-11-11 03:28:05 +01:00
|
|
|
|
|
|
|
export class Window { }
|
2015-04-16 01:44:20 +02:00
|
|
|
>Window : Window
|
2014-11-11 03:28:05 +01:00
|
|
|
|
|
|
|
export var p: W;
|
2015-04-16 01:44:20 +02:00
|
|
|
>p : string | Window
|
|
|
|
>W : string | Window
|
2014-11-11 03:28:05 +01:00
|
|
|
}
|
|
|
|
}
|