17 lines
374 B
TypeScript
17 lines
374 B
TypeScript
|
// @target: ES6
|
||
|
export let a = "hello";
|
||
|
export let x: string = a, y = x;
|
||
|
let b = y;
|
||
|
let c: string = b, d = c;
|
||
|
export module m1 {
|
||
|
export let k = a;
|
||
|
export let l: string = b, m = k;
|
||
|
let n = m1.k;
|
||
|
let o: string = n, p = k;
|
||
|
}
|
||
|
module m2 {
|
||
|
export let k = a;
|
||
|
export let l: string = b, m = k;
|
||
|
let n = m1.k;
|
||
|
let o: string = n, p = k;
|
||
|
}
|