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
I have an abstract on IMap (AbstractMap in example below), Implementation of IMap interface with custom key constraint from abstract class (FooMap in example below).
In my AbstractMap I have @:from and @:to methods to allow constructing of my map.
And for dynamic targets example below works correctly but I receives runtime exception (running on js and C# targets listings in the end of message) in C#:
$ haxe build.hxml
haxelib run hxcs hxcs_build.txt --haxe-version 3402 --feature-level 1
Note: dmcs is deprecated, please use mcs instead!
Unhandled Exception:
System.InvalidCastException: Specified cast is not valid.
at Main.main () [0x0005a] in <b6f74a2b4df84d9e9f088683dc02b1a3>:0
at EntryPoint__Main.Main () [0x00007] in <b6f74a2b4df84d9e9f088683dc02b1a3>:0
[ERROR] FATAL UNHANDLED EXCEPTION: System.InvalidCastException: Specified cast is not valid.
at Main.main () [0x0005a] in <b6f74a2b4df84d9e9f088683dc02b1a3>:0
at EntryPoint__Main.Main () [0x00007] in <b6f74a2b4df84d9e9f088683dc02b1a3>:0
Error: Command failed with error 1
I have an abstract on
IMap
(AbstractMap
in example below), Implementation ofIMap
interface with custom key constraint from abstract class (FooMap
in example below).In my
AbstractMap
I have@:from
and@:to
methods to allow constructing of my map.And for dynamic targets example below works correctly but I receives runtime exception (running on js and C# targets listings in the end of message) in C#:
Main.hx
:build.hxml
:build_js.hxml
:JS output:
CS output:
Generated C# main method:
The text was updated successfully, but these errors were encountered: