I have an abstract class (let’s say MyClass) over some other class (let’s say TheOtherClass), and MyClass defines toString() method. The method is being called when a variable is of MyClass type. However when cast to Dynamic or Any, it seems that TheOtherClass.toString() is being called instead.
Example on Try Haxe where I used haxe.io.Float32Array
as TheOtherClass.
Is this behaviour to be expected (maybe because Float32Array is Haxe std class?) or am I missing something in declaration of toString() method?