trezm/type-doc

Make sure assignments are handled properly.

trezm opened this issue · 0 comments

trezm commented

Should be able to handle (and warn about) the following:

var s /* t:string */
s = 3;

and

var n /* t:number */ = 1;
var s /* t:string */
s = n;

and

class Test1 {}

var s /* t:string */;
s = new Test1();