Check for const in assignment binop
This commit is contained in:
parent
efb4ce85ac
commit
53872373bf
@ -177,7 +177,7 @@ namespace AST {
|
||||
if (!lhs_res.lvalue) {
|
||||
state.errors.push_back(CompileError("Value must be a modifiable l-value", this->m_lhs->m_meta));
|
||||
}
|
||||
else if (lhs_ty->m_kind == types::TypeKind::Array) {
|
||||
else if (lhs_ty->m_const) {
|
||||
state.errors.push_back(CompileError("Value must be a modifiable l-value", this->m_lhs->m_meta));
|
||||
}
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user