Jump to content
  • Advertisement
Sign in to follow this  
Sir Ementaler

Assert failure during overload resolution.

This topic is 931 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

I've fixed this in revision 2300.

 

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

Share this post


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

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!