0
0
mirror of https://github.com/PostHog/posthog.git synced 2024-11-30 19:41:46 +01:00
posthog/hogvm/__tests__/variables.hog

16 lines
203 B
Plaintext

print('-- test variables --')
{
let a := 1 + 2
print(a)
let b := a + 4
print(b)
}
print('-- test variable reassignment --')
{
let a := 1
a := a + 3
a := a * 2
print(a)
}