Handle non simple refs in chained expressions (#182)

Signed-off-by: Anand Krishnamoorthi <anakrish@microsoft.com>
This commit is contained in:
Anand Krishnamoorthi
2024-03-15 07:13:54 -07:00
committed by GitHub
parent 48982222c5
commit 7e3fc08a14
3 changed files with 22 additions and 9 deletions
+14
View File
@@ -0,0 +1,14 @@
# Copyright (c) Microsoft Corporation.
# Licensed under the MIT License.
cases:
- note: ref
modules:
- |
package test
x = [k |
[1, 2, 3][[1, 2, 3][k]]
]
query: data.test
want_result:
x: [0, 1]