TypeScript/tests/cases/compiler/collisionCodeGenModuleWithMethodChildren.ts

32 lines
416 B
TypeScript
Raw Normal View History

2014-07-13 01:04:16 +02:00
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() {
}
}
}