...

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

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

     1# DO NOT EDIT; generated by go run testdata/gen.go
     2#
     3
     4TODO: Should #Bar result in string or #Foo | string?
     5
     6
     7raw: true
     8eval: true
     9-- in.cue --
    10{
    11	#Foo: {
    12		#Bar: #Foo | string
    13	}
    14}
    15-- out/def --
    16#Foo: {
    17	#Bar: #Foo | string
    18}
    19-- out/export --
    20
    21-- out/yaml --
    22{}
    23-- out/json --
    24{}
    25-- out/compile --
    26--- in.cue
    27{
    28  {
    29    #Foo: {
    30      #Bar: (〈1;#Foo〉|string)
    31    }
    32  }
    33}
    34-- out/eval/stats --
    35Leaks:  0
    36Freed:  5
    37Reused: 1
    38Allocs: 4
    39Retain: 0
    40
    41Unifications: 3
    42Conjuncts:    6
    43Disjuncts:    5
    44-- out/eval --
    45(struct){
    46  #Foo: (#struct){
    47    #Bar: (string){ string }
    48  }
    49}

View as plain text