Branch: Tag:

2014-12-04

2014-12-04 19:25:45 by Henrik Grubbström (Grubba) <grubba@grubba.org>

Runtime: Fixed object type check in match_type_svalue().

The type checker function used by the variant dispatcher
checked object types in the wrong order, which caused it
to fail when called with objects implementing a superset
of the required object type.

6153:    if( mark == o->prog )    res = 1;    else if( type->car ) -  res = is_compatible( mark, o->prog ); +  res = is_compatible( o->prog, mark );    else -  res = implements( mark, o->prog ); +  res = implements( o->prog, mark );    }    }    }