Ignore:
Timestamp:
Jul 13, 2024, 3:29:22 PM (5 weeks ago)
Author:
JiadaL <j82liang@…>
Branches:
master
Children:
2e6b2a0
Parents:
76b507d
Message:

Remove automatic conversion from Enum type name to its len; change With() semantic for enum to avoid type ambiguity (not fully implemented)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/Validate/GenericParameter.cpp

    r76b507d r8315947  
    301301const ast::Expr * TranslateDimensionCore::postvisit(
    302302                const ast::TypeExpr * expr ) {
    303         if ( auto instType = dynamic_cast<const ast::EnumInstType *>( expr->type.get() ) ) {
    304                 const ast::EnumDecl * baseEnum = instType->base.get();
    305                 return ast::ConstantExpr::from_int( expr->location, baseEnum->members.size() );
    306         }
     303        // if ( auto instType = dynamic_cast<const ast::EnumInstType *>( expr->type.get() ) ) {
     304        //      const ast::EnumDecl * baseEnum = instType->base.get();
     305        //      return ast::ConstantExpr::from_int( expr->location, baseEnum->members.size() );
     306        // }
    307307        return expr;
    308308}
Note: See TracChangeset for help on using the changeset viewer.