Funcdef error message when using delegate

Started by
0 comments, last by WitchLord 8 years, 5 months ago

When creating a delegate with a function that does not match the funcdef's signature, the error message given does not refer to the function name, but rather to the funcdef name:


funcdef void Foo();

class Bar
{
	bool Callback()
	{
		return true;
	}
}

Bar bar;

Foo@ pCallback = Foo( bar.Callback );

This gives the following error message:

No matching signatures to 'void Foo()'

This can be rather confusing.

Advertisement

Thanks. I'll look into improving the error message for this scenario.

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