Changeset eae8b37 for src/AST/Expr.cpp


Ignore:
Timestamp:
Dec 4, 2024, 10:17:49 PM (2 weeks ago)
Author:
JiadaL <j82liang@…>
Branches:
master
Children:
fc276f3
Parents:
509ec82
Message:

Move enum.hfa/enum.cfa to prelude

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/AST/Expr.cpp

    r509ec82 reae8b37  
    123123bool VariableExpr::get_lvalue() const {
    124124        // 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;
    125126        return true;
    126127}
Note: See TracChangeset for help on using the changeset viewer.