player-03/echoes

There are some issues with abstract types

rayloi777 opened this issue · 3 comments

There are some issues with abstract types

螢幕截圖 2023-03-30 上午3 34 31

Generally in situations like this, it's easiest to write typedef Speed = Float.

If it must be an abstract (usually because you want to add instance functions), then you'll need a @:to function that returns Int.

Is Work ! Thanks for your help :)

I should also mention, it's cool to see someone using this! Hope things are going smoothly.