• Advertisement
Sign in to follow this  

Assert failure during overload resolution.

This topic is 777 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

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.

Edited by Sir Ementaler

Share this post


Link to post
Share on other sites
Advertisement
Sign in to follow this  

  • Advertisement