You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
$ haxe -main Main -cs bin
haxelib run hxcs hxcs_build.txt --haxe-version 4000 --feature-level 1
Note: dmcs is deprecated, please use mcs instead!
src/Main.cs(38,44): error CS0030: Cannot convert type `object[]' to `haxe.lang.Null<int>[]'
Compilation failed: 1 error(s), 0 warnings
Generated code for main function:
publicstaticvoidmain(){global::Array<string>a=newglobal::Array<string>(newstring[]{"1","2"});// vvv Here everything is object[] vvvglobal::Array<object>ret=newglobal::Array<object>(((object[])(newobject[a.length])));{int_g=0;int_g1= a.length;while((_g<_g1)){inti=_g++;{global::haxe.lang.Null<int>val=global::Std.parseInt(((string)(a.__a[i])));// vvv Here it's Nill<int>[] (this is line 38) vvv((global::haxe.lang.Null<int>[])(ret.__a))[i]=val;}}}global::Array<object>a2= ret;}
Both emphasized lines have the same types in AST. But generated types in cs are different.
The text was updated successfully, but these errors were encountered:
Generated code for
main
function:Both emphasized lines have the same types in AST. But generated types in cs are different.
The text was updated successfully, but these errors were encountered: