45 lines
595 B
Plaintext
45 lines
595 B
Plaintext
|
=== tests/cases/compiler/collisionCodeGenModuleWithFunctionChildren.ts ===
|
||
|
module M {
|
||
|
>M : typeof M
|
||
|
|
||
|
export var x = 3;
|
||
|
>x : number
|
||
|
|
||
|
function fn(M, p = x) { }
|
||
|
>fn : (M: any, p?: number) => void
|
||
|
>M : any
|
||
|
>p : number
|
||
|
>x : number
|
||
|
}
|
||
|
|
||
|
module M {
|
||
|
>M : typeof M
|
||
|
|
||
|
function fn2() {
|
||
|
>fn2 : () => void
|
||
|
|
||
|
var M;
|
||
|
>M : any
|
||
|
|
||
|
var p = x;
|
||
|
>p : number
|
||
|
>x : number
|
||
|
}
|
||
|
}
|
||
|
|
||
|
module M {
|
||
|
>M : typeof M
|
||
|
|
||
|
function fn3() {
|
||
|
>fn3 : () => void
|
||
|
|
||
|
function M() {
|
||
|
>M : () => void
|
||
|
|
||
|
var p = x;
|
||
|
>p : number
|
||
|
>x : number
|
||
|
}
|
||
|
}
|
||
|
}
|