I expected to be able to match()
enum value with Int64
parameter by using Int
literal (because Int64 has @from Int) but it is not the case: Try Haxe!
Is this the way things supposed to be or am I missing something?
Also, you can’t match( FOO( Int64.ofInt(42) ) )
, but that’s would be a bit cumbersome anyways even if possible.