- File:
-
- 1 edited
-
src/Validate/GenericParameter.cpp (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
src/Validate/GenericParameter.cpp
r7a780ad rf02f546 289 289 return new ast::TypeExpr( expr->location, 290 290 new ast::ArrayType( 291 new ast::BasicType( ast::Basic Kind::Char ),291 new ast::BasicType( ast::BasicType::Char ), 292 292 expr, 293 293 ast::VariableLen, … … 301 301 const ast::Expr * TranslateDimensionCore::postvisit( 302 302 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). 307 304 return expr; 308 305 }
Note:
See TracChangeset
for help on using the changeset viewer.