I meant to call this:
RegisterObjectBehaviour("Base", asBEHAVE_REF_CAST, "Derived@ f()", asFUNCTION((refCast<Base,Derived>)), asCALL_CDECL_OBJLAST)
But instead called this (note the typo):
RegisterObjectBehaviour("Derived", asBEHAVE_REF_CAST, "Derived@ f()", asFUNCTION((refCast<Base,Derived>)), asCALL_CDECL_OBJLAST)
There were no warnings or asserts from AS.. the Base-to-Derived cast in script didn't work (as we might expect).
I won't go as far as saying this is a bug (as in it should have triggered an assert).. but would it be possible/desirable to at least add a warning about it or something along those lines? What is the expected behavior here?
2.29.0 WIP (rev 1906), Linux 32bit
Thank you!