Ignore:
Timestamp:
Mar 29, 2022, 4:09:51 PM (2 years ago)
Author:
Andrew Beach <ajbeach@…>
Branches:
ADT, ast-experimental, enum, master, pthread-emulation, qualifiedEnum
Children:
6e47b49
Parents:
dfd3410
Message:

Added a 'missing' TypeInstType? constructor and rewrote some calls to use it.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/Concurrency/KeywordsNew.cpp

    rdfd3410 rb230091  
    8888                auto typeDecl = ast::deepCopy( typeParam );
    8989                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 ) );
    9291                for ( auto & assertion : typeDecl->assertions ) {
    9392                        mutFunc->assertions.push_back( assertion );
     
    108107        for ( const ast::ptr<ast::TypeDecl> & typeDecl : mutFunc->type_params ) {
    109108                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 ) ) );
    112110                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 ) ) );
    115112        }
    116113
Note: See TracChangeset for help on using the changeset viewer.