TypeScript/tests/cases/compiler/declFileTypeAnnotationTypeAlias.ts
Sheetal Nandi d6fb678222 Test cases for type alias declaration emit and privacy check.
Also removed the unnecessary error messages for type alias privacy check
2014-11-10 18:28:05 -08:00

34 lines
531 B
TypeScript

// @target: ES5
// @module: commonjs
// @declaration: true
module M {
export type Value = string | number | boolean;
export var x: Value;
export class c {
}
export type C = c;
export module m {
export class c {
}
}
export type MC = m.c;
export type fc = () => c;
}
interface Window {
someMethod();
}
module M {
export type W = Window | string;
export module N {
export class Window { }
export var p: W;
}
}