---
cases:
  - data:
      a:
        - 1
        - 2
        - 3
        - 4
    modules:
      - |
        package generated

        p {
          __local0__ = data.a[2]
          not to_number("-1", __local0__)
        }
    note: casts/to_number ref dest
    query: data.generated.p = x
    want_result:
      - x: true
