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

40 lines
708 B
Plaintext

fun execFunction() {
print('execFunction')
}
fun execFunctionNested() {
fun execFunction() {
print('execFunctionNew')
}
print('execFunctionNested')
execFunction()
}
execFunction()
execFunctionNested()
execFunction()
print('--------')
fun secondExecFunction() {
print('secondExecFunction')
}
fun secondExecFunctionNested() {
print('secondExecFunctionNested')
secondExecFunction()
}
secondExecFunction()
secondExecFunctionNested()
secondExecFunction()
print('--------')
let decode := () -> base64Decode
let sixtyFour := base64Encode
print(sixtyFour('http://www.google.com'))
print((decode())(sixtyFour('http://www.google.com')))
print(decode()(sixtyFour('http://www.google.com')))