2016-04-15 02:16:53 +02:00
|
|
|
// @target: es6
|
|
|
|
|
|
|
|
// @filename: f1.d.ts
|
|
|
|
export {};
|
|
|
|
|
2016-04-15 02:57:17 +02:00
|
|
|
declare module M.M1 {
|
|
|
|
export let x: number;
|
|
|
|
}
|
2016-04-15 02:16:53 +02:00
|
|
|
declare global {
|
|
|
|
interface SymbolConstructor {
|
|
|
|
observable: symbol;
|
|
|
|
}
|
|
|
|
class Cls {x}
|
|
|
|
let [a, b]: number[];
|
2016-04-15 20:31:26 +02:00
|
|
|
export import X = M.M1.x;
|
2016-04-15 02:16:53 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
// @filename: main.ts
|
|
|
|
|
|
|
|
Symbol.observable;
|
2016-04-15 02:57:17 +02:00
|
|
|
new Cls().x
|
|
|
|
let c = a + b + X;
|