...

Text file src/cuelang.org/go/cue/testdata/resolve/031_definitions_with_disjunctions_recurisive.txtar

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

     1# DO NOT EDIT; generated by go run testdata/gen.go
     2#
     3#name: definitions with disjunctions recurisive
     4#evalPartial
     5-- in.cue --
     6#Foo: {
     7	x: {
     8		field: int
     9
    10		{a: 1} |
    11		{b: 2}
    12	}
    13	x: c: 3
    14}
    15-- out/def --
    16#Foo: {
    17	x: {
    18		field: int
    19		a:     1
    20		c:     3
    21	} | {
    22		field: int
    23		b:     2
    24		c:     3
    25	}
    26}
    27-- out/export --
    28
    29-- out/yaml --
    30{}
    31-- out/json --
    32{}
    33-- out/legacy-debug --
    34<0>{#Foo: <1>C{x: (<2>C{field: int, a: 1, c: 3} | <3>C{field: int, b: 2, c: 3})}}
    35-- out/compile --
    36--- in.cue
    37{
    38  #Foo: {
    39    x: {
    40      field: int
    41      ({
    42        a: 1
    43      }|{
    44        b: 2
    45      })
    46    }
    47    x: {
    48      c: 3
    49    }
    50  }
    51}
    52-- out/eval/stats --
    53Leaks:  0
    54Freed:  11
    55Reused: 5
    56Allocs: 6
    57Retain: 0
    58
    59Unifications: 9
    60Conjuncts:    13
    61Disjuncts:    11
    62-- out/eval --
    63(struct){
    64  #Foo: (#struct){
    65    x: (#struct){ |((#struct){
    66        field: (int){ int }
    67        c: (int){ 3 }
    68        a: (int){ 1 }
    69      }, (#struct){
    70        field: (int){ int }
    71        c: (int){ 3 }
    72        b: (int){ 2 }
    73      }) }
    74  }
    75}

View as plain text