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!
Cancel
Save
It looks like a bug in AngelScript. I'll look into it.
Cancel
Save
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?
Cancel
Save
Yes, I'm sure. This enum was for test purposes only and was defined only in this one place.
Cancel
Save
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?
Cancel
Save
I will try to write separate application to reproduce this problem.
Cancel
Save
Thanks. It will help a lot.
Cancel
Save
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.
Cancel
Save