- File:
-
- 1 edited
-
src/Validate/ForallPointerDecay.cpp (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
src/Validate/ForallPointerDecay.cpp
ra556492 rb230091 41 41 for ( auto & type_param : decl->type_params ) { 42 42 type->forall.emplace_back( 43 new ast::TypeInstType( type_param ->name, type_param) );43 new ast::TypeInstType( type_param ) ); 44 44 } 45 45 for ( auto & assertion : decl->assertions ) { … … 70 70 AssertionList assertions; 71 71 // Substitute trait decl parameters for instance parameters. 72 ast::TypeSubstitution sub( 73 inst->base->params.begin(), 74 inst->base->params.end(), 75 inst->params.begin() 76 ); 72 ast::TypeSubstitution sub( inst->base->params, inst->params ); 77 73 for ( const ast::ptr<ast::Decl> & decl : inst->base->members ) { 78 74 ast::ptr<ast::DeclWithType> copy =
Note:
See TracChangeset
for help on using the changeset viewer.