- Timestamp:
- Dec 4, 2024, 10:17:49 PM (2 weeks ago)
- Branches:
- master
- Children:
- fc276f3
- Parents:
- 509ec82
- Location:
- src
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
src/AST/Expr.cpp
r509ec82 reae8b37 123 123 bool VariableExpr::get_lvalue() const { 124 124 // It isn't always an lvalue, but it is never an rvalue. 125 if(dynamic_cast<const ast::EnumInstType *>(var->get_type())) return !var->isMember; 125 126 return true; 126 127 } -
src/Parser/TypeData.cpp
r509ec82 reae8b37 1481 1481 ast::ObjectDecl * object = strict_dynamic_cast<ast::ObjectDecl *>( member ); 1482 1482 object->isHidden = ast::EnumDecl::EnumHiding::Hide == ret->hide; 1483 object->isMember = true; 1483 1484 if ( ret->isOpaque() && cur->has_enumeratorValue() ) { 1484 1485 SemanticError( td->location, "Opague cannot have an explicit initializer value." );
Note: See TracChangeset
for help on using the changeset viewer.