We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 553b3af commit 71a699cCopy full SHA for 71a699c
std/jule/parser/parser.jule
@@ -1379,7 +1379,9 @@ impl parser {
1379
if v != nil {
1380
v.Public = false
1381
v.Binded = true
1382
- v.Static = true
+ if !v.Constant {
1383
+ v.Static = true
1384
+ }
1385
if v.Expr != nil {
1386
self.pushErr(v.Token, log::BindedVarHasExpr)
1387
}
@@ -1586,7 +1588,7 @@ impl parser {
1586
1588
| token::Const
1587
1589
| token::Mut:
1590
mut v := self.buildVar(tokens)
- if v != nil {
1591
+ if v != nil && !v.Constant {
1592
v.Static = true
1593
1594
ret v
0 commit comments