🎉 Celebrating 25 Years of GameDev.net! 🎉

Not many can claim 25 years on the Internet! Join us in celebrating this milestone. Learn more about our history, and thank you for being a part of our community!

Implicit downcast not works

Started by
1 comment, last by WitchLord 9 years, 11 months ago

AngelScript revision 1982.


class A
{
}

class B : A
{
}

A@ a = B();

INFO : Compiling A@ a.
ERROR : Can't implicitly convert from 'B@&' to 'A@&'.
Advertisement

Odd.

I'll look into it.

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

Fixed in revision 1987.

Thanks,

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