Changeset a4a6802 for src/AST/Decl.cpp


Ignore:
Timestamp:
Jan 13, 2022, 12:12:41 PM (3 years ago)
Author:
Fangren Yu <f37yu@…>
Branches:
ADT, ast-experimental, enum, forall-pointer-decay, master, pthread-emulation, qualifiedEnum
Children:
e0ac9f1
Parents:
3eaa689
Message:

fill in FunctionType? assertions early

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/AST/Decl.cpp

    r3eaa689 ra4a6802  
    2626#include "Node.hpp"            // for readonly
    2727#include "Type.hpp"            // for readonly
     28#include "Expr.hpp"
    2829
    2930namespace ast {
     
    6566        for (auto & tp : this->type_params) {
    6667                ftype->forall.emplace_back(new TypeInstType(tp->name, tp));
     68                for (auto & ap: tp->assertions) {
     69                        ftype->assertions.emplace_back(new VariableExpr(loc, ap));
     70                }
    6771        }
    6872        this->type = ftype;
Note: See TracChangeset for help on using the changeset viewer.