...

Text file src/cuelang.org/go/cue/testdata/export/028.txtar

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

     1# DO NOT EDIT; generated by go run testdata/gen.go
     2#
     3raw: true
     4eval: true
     5-- in.cue --
     6{
     7	#FindInMap: {
     8		#: "Fn::FindInMap": [string | #FindInMap]
     9	}
    10	a: [...string]
    11}
    12-- out/def --
    13#FindInMap: {
    14	#: {
    15		"Fn::FindInMap": [string | #FindInMap]
    16	}
    17}
    18a: [...string]
    19-- out/export --
    20a: []
    21-- out/yaml --
    22a: []
    23-- out/json --
    24{"a":[]}
    25-- out/compile --
    26--- in.cue
    27{
    28  {
    29    #FindInMap: {
    30      #: {
    31        "Fn::FindInMap": [
    32          (string|〈3;#FindInMap〉),
    33        ]
    34      }
    35    }
    36    a: [
    37      ...string,
    38    ]
    39  }
    40}
    41-- out/eval/stats --
    42Leaks:  0
    43Freed:  8
    44Reused: 1
    45Allocs: 7
    46Retain: 0
    47
    48Unifications: 6
    49Conjuncts:    9
    50Disjuncts:    8
    51-- out/eval --
    52(struct){
    53  #FindInMap: (#struct){
    54    #: (#struct){
    55      "Fn::FindInMap": (#list){
    56        0: (string){ string }
    57      }
    58    }
    59  }
    60  a: (list){
    61  }
    62}

View as plain text