Cannot use structure inititialisation (from @:structInit
) to declare a new entry in a map
#10655
Labels
Milestone
@:structInit
) to declare a new entry in a map
#10655
Using Haxe version 4.0.5. Here is the content of the file
Main.hx
.When trying to launch this code using
haxe --run Main
, the compiler gives this error:We must use a temporary variable to insert a new value in the map when using the way to construct an instance given by
@:structInit
.The text was updated successfully, but these errors were encountered: