TypeScript/tests/cases/compiler/collisionCodeGenModuleWithMethodChildren.ts
2014-07-12 17:30:19 -07:00

32 lines
416 B
TypeScript

module M {
export var x = 3;
class c {
fn(M, p = x) { }
}
}
module M {
class d {
fn2() {
var M;
var p = x;
}
}
}
module M {
class e {
fn3() {
function M() {
var p = x;
}
}
}
}
module M { // Shouldnt bn _M
class f {
M() {
}
}
}