Changeset 64eae56 for src/ResolvExpr


Ignore:
Timestamp:
Dec 21, 2016, 5:15:27 PM (8 years ago)
Author:
Rob Schluntz <rschlunt@…>
Branches:
ADT, aaron-thesis, arm-eh, ast-experimental, cleanup-dtors, deferred_resn, demangler, enum, forall-pointer-decay, jacob/cs343-translation, jenkins-sandbox, master, new-ast, new-ast-unique-expr, new-env, no_list, persistent-indexer, pthread-emulation, qualifiedEnum, resolv-new, with_gc
Children:
0c286cf
Parents:
53e3b4a
Message:

match formal parameter type of actual function when specializing ttype parameter, flatten types when unifying ttype parameters

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/ResolvExpr/Unify.cc

    r53e3b4a r64eae56  
    491491                std::list< Type * > types;
    492492                for ( ; begin != end; ++begin ) {
    493                         // might need to break apart these types too?
    494                         // yes, looks like we should flatten begin and push back each types individually
    495                         types.push_back( (*begin)->get_type()->clone() );
     493                        // it's guaranteed that a ttype variable will be bound to a flat tuple, so ensure that this results in a flat tuple
     494                        flatten( (*begin)->get_type(), back_inserter( types ) );
    496495                }
    497496                return new TupleType( Type::Qualifiers(), types );
Note: See TracChangeset for help on using the changeset viewer.