0
0
mirror of https://github.com/PostHog/posthog.git synced 2024-11-22 08:40:03 +01:00
posthog/hogvm/__tests__/dicts.hog

13 lines
322 B
Plaintext
Raw Normal View History

print({})
print({'key': 'value'})
print({'key': 'value', 'other': 'thing'})
print({'key': {'otherKey': 'value'}})
let key := 3
print({key: 'value'})
2024-06-20 16:05:15 +02:00
print({'key': 'value', }.key)
print({'key': 'value'}['key'])
print({'key': {'otherKey': 'value'}}.key.otherKey)
2024-06-20 16:05:15 +02:00
print({'key': {'otherKey': 'value', } , }['key'].otherKey)