Hello, I know this might be a very niche edge case, but I still want to ask about it anyways.
I have a templated function called GetScript<T>.
When I do this:
MyScript@ script = self.GetScript<MyScript>(); it works fine.
However, when I would write this:
self.GetScript<int>() it crashes internally with this assert: asASSERT(dt.IsObjectHandle()) in as_scriptengine.cpp in the DetermineTypeForTemplate function.
I know this makes sense, but I would very much prefer if the build failed and compilation errors were reported. It is a user error that could be done in my engine and I want to avoid crashing from scripting as much as possible.
Thank you!