Fix #3249
Merge branch 'development' of https://github.com/HaxeFoundation/haxe into issue3249-fix
Merge pull request #3253 from qifun/issue3249-fix

Fix #3249