Advertisement

Failed assertion when assigning string to ref@

Started by September 05, 2024 06:05 PM
2 comments, last by WitchLord 3 months, 2 weeks ago

I get a failed assertion when doing this:

void Main() { ref@ a = "a"; }

The assertion:

asASSERT(expr->type.dataType.IsObjectHandle());

Maybe my version of ref isn't the latest version, but I think this might be a core Angelscript issue. Originally this was reported here: https://github.com/openplanet-nl/issues/issues/547

Yes, asASSERT failures are almost always an issue within AngelScript. It is usually due to some invalid script (which is the case here as well) that I have not predicted in my regression test suite.

I'll investigate and fix it so a proper compiler error is given instead of an asASSERT failure.

Thanks for the report.

AngelCode.com - game development and more - Reference DB - game developer references
AngelScript - free scripting library - BMFont - free bitmap font generator - Tower - free puzzle game

Advertisement

I've fixed this issue in revision 2953.

https://sourceforge.net/p/angelscript/code/2953/

Regards,
Andreas

AngelCode.com - game development and more - Reference DB - game developer references
AngelScript - free scripting library - BMFont - free bitmap font generator - Tower - free puzzle game

This topic is closed to new replies.

Advertisement