Assert failure during overload resolution.

Started by
1 comment, last by WitchLord 8 years, 1 month ago

In AngelScript 2.31.0, the following script erroneously triggers an assert failure during compilation while resolving overload resolution:


funcdef void f();
class foo {
	void opAssign(f@) {}
	void opAssign(int) {}
}
void main() {
	foo bar = 1;
}

The compiler attempts implicit conversion of an integer to a function handle, which is apparently not a predicted type combination.

Advertisement

Thanks. I'll look into this.

AngelCode.com - game development and more - Reference DB - game developer references
AngelScript - free scripting library - BMFont - free bitmap font generator - Tower - free puzzle game

I've fixed this in revision 2300.

The assert in this case was incorrect, and should expect funcdef types too.

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