Skip to content

Commit

Permalink
sema: enable value checking for constant variables
Browse files Browse the repository at this point in the history
  • Loading branch information
mertcandav committed Feb 26, 2025
1 parent 6e12c5e commit e479a87
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion std/jule/sema/sema.jule
Original file line number Diff line number Diff line change
Expand Up @@ -2129,7 +2129,7 @@ impl sema {
// If variable is constant and have a exact type, check the value with
// physical memory constraints.
if v.Constant && v.ValueSym.Value.untyped {
//_ = checkValue(v.ValueSym.Value, self, v.ValueSym.Expr.Token, evalDefault|evalPhysicalMem)
_ = checkValue(v.ValueSym.Value, self, v.ValueSym.Expr.Token, evalDefault|evalPhysicalMem)
}

if self.checkAssignType(v.Reference, v.TypeSym.Type, v.ValueSym.Value, v.ValueSym.Expr.Token, v.Refers) {
Expand Down

0 comments on commit e479a87

Please sign in to comment.