Merge: Adaptive typing: fix buggy warning messages
authorJean Privat <jean@pryen.org>
Mon, 22 Jun 2015 19:36:12 +0000 (15:36 -0400)
committerJean Privat <jean@pryen.org>
Mon, 22 Jun 2015 19:36:12 +0000 (15:36 -0400)
commit6805ff9fb2904985585c437421c63f0af04abf29
treeafe2db861f71938417a784ac81e404b6e3a0b773
parent7a1c6f496d27853f90ccbca25afc48dca856393b
parentd92f4996b716461c1759979f637444ae36c4e940
Merge: Adaptive typing: fix buggy warning messages

 #1257 relaxed some rules about untyped code in order to allow the compiler to compute a fixed point. So an inconsistent state with untyped code was permitted during the typing.

The problem is that errors messages or warnings could be prematurely displayed during the analysis thus be false because based on non final information.
The solution is to add a post-processing after the fixed point and delay the premature warning so that the information used is computed and reliable.

Moreover, the `useless null test because always null` is now brought back (it was disabled because caused too much unreliable noise)

Close #1257

Pull-Request: #1524
Reviewed-by: Alexis Laferrière <alexis.laf@xymus.net>
Reviewed-by: Romain Chanoir <chanoir.romain@courrier.uqam.ca>