//// [avoid.ts]
function f() {
    var x=1;
}

var y=f();  // error void fn
var why:any=f(); // error void fn
var w:any;
w=f(); // error void fn

class C {
    g() {
        
    }
}

var z=new C().g(); // error void fn
var N=new f();  // ok with void fn



//// [avoid.js]
function f() {
    var x = 1;
}
var y = f(); // error void fn
var why = f(); // error void fn
var w;
w = f(); // error void fn
var C = (function () {
    function C() {
    }
    C.prototype.g = function () {
    };
    return C;
}());
var z = new C().g(); // error void fn
var N = new f(); // ok with void fn
