Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/Validate/GenericParameter.cpp

    r7a780ad rf02f546  
    289289                return new ast::TypeExpr( expr->location,
    290290                        new ast::ArrayType(
    291                                 new ast::BasicType( ast::BasicKind::Char ),
     291                                new ast::BasicType( ast::BasicType::Char ),
    292292                                expr,
    293293                                ast::VariableLen,
     
    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        // Does nothing, except prevents matching ast::Expr (above).
    307304        return expr;
    308305}
Note: See TracChangeset for help on using the changeset viewer.