Changeset b230091 for src/Concurrency
- Timestamp:
- Mar 29, 2022, 4:09:51 PM (3 years ago)
- Branches:
- ADT, ast-experimental, enum, master, pthread-emulation, qualifiedEnum
- Children:
- 6e47b49
- Parents:
- dfd3410
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/Concurrency/KeywordsNew.cpp
rdfd3410 rb230091 88 88 auto typeDecl = ast::deepCopy( typeParam ); 89 89 mutFunc->type_params.push_back( typeDecl ); 90 mutType->forall.push_back( 91 new ast::TypeInstType( typeDecl->name, typeDecl ) ); 90 mutType->forall.push_back( new ast::TypeInstType( typeDecl ) ); 92 91 for ( auto & assertion : typeDecl->assertions ) { 93 92 mutFunc->assertions.push_back( assertion ); … … 108 107 for ( const ast::ptr<ast::TypeDecl> & typeDecl : mutFunc->type_params ) { 109 108 paramTypeInst->params.push_back( 110 new ast::TypeExpr( location, 111 new ast::TypeInstType( typeDecl->name, typeDecl ) ) ); 109 new ast::TypeExpr( location, new ast::TypeInstType( typeDecl ) ) ); 112 110 typeParamInst->params.push_back( 113 new ast::TypeExpr( location, 114 new ast::TypeInstType( typeDecl->name, typeDecl ) ) ); 111 new ast::TypeExpr( location, new ast::TypeInstType( typeDecl ) ) ); 115 112 } 116 113
Note: See TracChangeset
for help on using the changeset viewer.