When compiling function which uses enum value as default argument, and compiler needs to write message with function declaration, it omits enum namespace and puts spaces around `::`
Registration
engine->SetDefaultNamespace("Engine");
engine->RegisterEnum("WindowStyle");
engine->RegisterEnumValue("WindowStyle", "None", sf::Style::None);
engine->RegisterEnumValue("WindowStyle", "Default", sf::Style::Default);
engine->RegisterObjectType("Window", 0, as::asOBJ_REF | as::asOBJ_NOHANDLE);
engine->RegisterObjectMethod("Window", "void Open(uint32 width = 0, uint32 height = 0, uint8 bitsPerPixel = 32, string title = \"\", uint32 style = WindowStyle::Default)", as::asMETHOD(Window, Open_Call), as::asCALL_THISCALL);
engine->SetDefaultNamespace("");
Bad script
MyWindow.Open("", style : Engine::WindowStyle::None);
Error message
Compiling bool testEnumThing()
No matching signatures to 'Window::Open(const string, style: const Engine::WindowStyle)'
Candidates are:
void Window::Open(uint width = 0, uint height = 0, uint8 bitsPerPixel = 32, string title = "", uint style = WindowStyle :: Default)
…And when i look at that message again, there's no namespace displayed for function itself as well :(