Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/ResolvExpr/Unify.cc

    rbbf2cb1 r06601401  
    517517                }
    518518
    519                 void postvisit( const ast::EnumPosType * ) {
     519                void postvisit( const ast::EnumPosType * posType ) {
    520520                        // Lazy approach for now
    521521                        auto otherPos = dynamic_cast< const ast::EnumPosType *>(type2);
    522                         if (otherPos) this->result = otherPos;
     522                        if ( otherPos ) {
     523                                if ( otherPos->instance->base->name == posType->instance->base->name )
     524                                        result = otherPos;
     525                        }
    523526                }
    524527
Note: See TracChangeset for help on using the changeset viewer.