haxe icon indicating copy to clipboard operation
haxe copied to clipboard

[js] Regression with null safety diagnostics

Open RblSb opened this issue 10 months ago • 2 comments

In nightly builds after file resave this error occurs: (no compilation errors). From vshaxe codebase, doesn't happen on interp. Main.hx:

using StringTools;

@:nullSafety
class Main {
	static function main() {}

	static function extractReturnType(hint:String):Void {
		// Null safety: Cannot unify String with { charCodeAt : Int -> Int }
		for (i => code in hint) {}
	}
}
-cp src
-main Main
--js bin/main.js

RblSb avatar Dec 29 '24 06:12 RblSb