Changeset 76c7addb for src


Ignore:
Timestamp:
Apr 15, 2024, 2:19:45 PM (8 months ago)
Author:
JiadaL <j82liang@…>
Branches:
master
Children:
cdb4eaa
Parents:
fb2e916
Message:

Fix Enum predecessor

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/Validate/ImplementEnumFunc.cpp

    rfb2e916 r76c7addb  
    156156                                         const ast::ObjectDecl* dstParam,
    157157                                         const ast::ObjectDecl* srcParam) {
    158         // const CodeLocation& location = func->location;
    159         // auto& params = func->params;
    160         // assert(2 == params.size());
    161         // auto dstParam = params.front().strict_as<ast::ObjectDecl>();
    162         // auto srcParam = params.back().strict_as<ast::ObjectDecl>();
    163158        return new ast::CompoundStmt(
    164159            location,
     
    440435
    441436    auto addOneExpr = ast::UntypedExpr::createCall( location,
    442         "?+?",
     437        succ? "?+?": "?-?",
    443438        {new ast::VariableExpr(location, param),
    444439        ast::ConstantExpr::from_int(location, 1)}
Note: See TracChangeset for help on using the changeset viewer.