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.