Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/Validate/ForallPointerDecay.cpp

    rb230091 ra556492  
    4141        for ( auto & type_param : decl->type_params ) {
    4242                type->forall.emplace_back(
    43                         new ast::TypeInstType( type_param ) );
     43                        new ast::TypeInstType( type_param->name, type_param ) );
    4444        }
    4545        for ( auto & assertion : decl->assertions ) {
     
    7070                AssertionList assertions;
    7171                // Substitute trait decl parameters for instance parameters.
    72                 ast::TypeSubstitution sub( inst->base->params, inst->params );
     72                ast::TypeSubstitution sub(
     73                        inst->base->params.begin(),
     74                        inst->base->params.end(),
     75                        inst->params.begin()
     76                );
    7377                for ( const ast::ptr<ast::Decl> & decl : inst->base->members ) {
    7478                        ast::ptr<ast::DeclWithType> copy =
Note: See TracChangeset for help on using the changeset viewer.