...

Text file src/cuelang.org/go/cue/testdata/fulleval/017_resolutions_in_struct_comprehension_keys.txtar

Documentation: cuelang.org/go/cue/testdata/fulleval

     1# DO NOT EDIT; generated by go run testdata/gen.go
     2#
     3#name: resolutions in struct comprehension keys
     4#evalFull
     5-- in.cue --
     6a: {for _, b in ["c"] {"\(b+".")": "a"}}
     7-- out/def --
     8a: {
     9	"c.": "a"
    10}
    11-- out/export --
    12a: {
    13	"c.": "a"
    14}
    15-- out/yaml --
    16a:
    17  c.: a
    18-- out/json --
    19{"a":{"c.":"a"}}
    20-- out/legacy-debug --
    21<0>{a: <1>{"c.": "a"}}
    22-- out/compile --
    23--- in.cue
    24{
    25  a: {
    26    for _, b in [
    27      "c",
    28    ] {
    29      "\((〈1;b〉 + "."))": "a"
    30    }
    31  }
    32}
    33-- out/eval/stats --
    34Leaks:  2
    35Freed:  3
    36Reused: 0
    37Allocs: 5
    38Retain: 3
    39
    40Unifications: 5
    41Conjuncts:    5
    42Disjuncts:    4
    43-- out/eval --
    44(struct){
    45  a: (struct){
    46    "c.": (string){ "a" }
    47  }
    48}

View as plain text