=== tests/cases/compiler/moduleUnassignedVariable.ts === module Bar { >Bar : typeof Bar export var a = 1; >a : number function fooA() { return a; } // Correct: return Bar.a >fooA : () => number >a : number export var b; >b : any function fooB() { return b; } // Incorrect: return b >fooB : () => any >b : any }