Advertisement

Assert failure during overload resolution.

Started by March 01, 2016 10:55 PM
1 comment, last by WitchLord 8 years, 8 months 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.

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

Advertisement

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