Skip to content

Commit

Permalink
tests: add case for constant declarations
Browse files Browse the repository at this point in the history
  • Loading branch information
Alexander Fedotov authored and feds01 committed Sep 23, 2024
1 parent e1fc042 commit 68fed75
Showing 1 changed file with 24 additions and 0 deletions.
24 changes: 24 additions & 0 deletions tests/cases/parser/declarations/constants.hash
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
// stage=parse


m: i32 : 0
k :: 0

foo :: () => {
k + m
}

bar :: () => {
l :: foo()
t := 1 + l

l + t
}


fizz :: () => {
l: i32 : foo()
t: i32 = 1 + l

l + t
}

0 comments on commit 68fed75

Please sign in to comment.