Open Simn opened 5 years ago
Different example:
class Main {
@:analyzer(no_fusion)
static function main() {
new Main(0).add({var m = new Main(1); m; });
}
@:pure(false) function add(m1:Main) return this;
function new(i:Int) { }
}
Generated JS:
Main.main = function() {
var m = new Main(1);
new Main(0).add(m);
};
I think something weird is going on with purity inference because -D analyzer-no-purity-inference
fixes it.
Had to revert that fix because some targets are failing. This probably suggests that they have some other kind of problem, but I won't be able to deal with all that in time for 4.3.
C'est la merde...
Generated JS:
C'est la merde...