• Advertisement
Sign in to follow this  

Error: Found multiple matching enum values

This topic is 2088 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, I have a test script:

enum eTestEnum
{
eTestEnumVal = 1,
}

void testFunc()
{
eTestEnum e = eTestEnumVal;
}


and I'm getting "Found multiple matching enum values" error at line with assignment. I have engine->ep.requireEnumScope set to false.
When I change my script to:

eTestEnum e = eTestEnum::eTestEnumVal;

it works without any errors. Why is that error happening in this example?

I'm using 2.23.0 WIP version of the AngelScript.

Thanks in advance!

Share this post


Link to post
Share on other sites
Advertisement
I haven't been able to reproduce this problem.

Are you sure you don't have more than one enum that define the same enum value?

Share this post


Link to post
Share on other sites
Yes, I'm sure. This enum was for test purposes only and was defined only in this one place.

Share this post


Link to post
Share on other sites
Did you test the script in your normal application, or did you write a separate test app?

Can you write a small test app that reproduces the problem and show it so I can debug it?

Share this post


Link to post
Share on other sites
Is this bug still existing? Or can I consider it closed?

It is quite possible that it was related to the problems with the namespaces, and thus fixed in the WIP.

Share this post


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

  • Advertisement