Jump to content
  • Advertisement
Sign in to follow this  
SadSingleton

Crash when declaring a private property accessor

This topic is 2368 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Hello,

Are private property accessors supported when using the non-prefixed syntax?

This code:


class TestClass
{
private int MyProp
{
get { return 1; }
}
}


results in a crash:


>msvcr90d.dll!_wassert(const wchar_t * expr=0x020fa840, const wchar_t * filename=0x020fa798, unsigned int lineno=3688) Line 346 C
asCBuilder::CreateDataTypeFromNode(asCScriptNode * node=0x05a3c5e0, asCScriptCode * file=0x0546cf90, const asCString & implicitNamespace={...}, bool acceptHandleForScope=false, asCObjectType * currentType=0x00000000) Line 3688 + 0x1d bytes C++
asCBuilder::RegisterVirtualProperty(asCScriptNode * node=0x05a3c5e0, asCScriptCode * file=0x0546cf90, asCObjectType * objType=0x05542d58, bool isInterface=false, bool isGlobalFunction=false, const asCString & ns={...}, bool isExistingShared=false) Line 3284 + 0x39 bytes C++
asCBuilder::ParseScripts() Line 468 + 0x3d bytes C++
asCBuilder::Build() Line 192 C++
asCModule::Build() Line 205 + 0xb bytes C++


Using 2.23.0.

Share this post


Link to post
Share on other sites
Advertisement
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!