Merge remote-tracking branch 'origin/topic/jsiwek/gh-1296-fix-list-type-checks'

* origin/topic/jsiwek/gh-1296-fix-list-type-checks:
  GH-1296: fix type-checks related to list-type equality
This commit is contained in:
Jon Siwek 2021-01-21 13:54:18 -08:00
commit 7f3f5a868f
8 changed files with 116 additions and 39 deletions

View file

@ -1590,11 +1590,8 @@ bool same_type(const Type& arg_t1, const Type& arg_t2,
arg_t2.Tag() == TYPE_ANY )
return true;
auto t1 = flatten_type(&arg_t1);
auto t2 = flatten_type(&arg_t2);
if ( t1 == t2 )
return true;
auto t1 = &arg_t1;
auto t2 = &arg_t2;
if ( t1->Tag() != t2->Tag() )
{