cuelang.org/go@v0.10.1/cue/testdata/definitions/defembed.txtar (about)

     1  -- in.cue --
     2  a: {
     3  	#A
     4  }
     5  
     6  a: c: 1
     7  
     8  #A: b: 1
     9  -- out/eval/stats --
    10  Leaks:  0
    11  Freed:  6
    12  Reused: 2
    13  Allocs: 4
    14  Retain: 1
    15  
    16  Unifications: 6
    17  Conjuncts:    9
    18  Disjuncts:    7
    19  -- out/evalalpha --
    20  Errors:
    21  a.c: field not allowed:
    22      ./in.cue:5:4
    23  
    24  Result:
    25  (_|_){
    26    // [eval]
    27    a: (_|_){
    28      // [eval]
    29      c: (_|_){
    30        // [eval] a.c: field not allowed:
    31        //     ./in.cue:5:4
    32      }
    33      b: (int){ 1 }
    34    }
    35    #A: (#struct){
    36      b: (int){ 1 }
    37    }
    38  }
    39  -- diff/-out/evalalpha<==>+out/eval --
    40  diff old new
    41  --- old
    42  +++ new
    43  @@ -1,9 +1,6 @@
    44   Errors:
    45   a.c: field not allowed:
    46  -    ./in.cue:1:4
    47  -    ./in.cue:2:2
    48       ./in.cue:5:4
    49  -    ./in.cue:7:5
    50   
    51   Result:
    52   (_|_){
    53  @@ -10,14 +7,11 @@
    54     // [eval]
    55     a: (_|_){
    56       // [eval]
    57  -    b: (int){ 1 }
    58       c: (_|_){
    59         // [eval] a.c: field not allowed:
    60  -      //     ./in.cue:1:4
    61  -      //     ./in.cue:2:2
    62         //     ./in.cue:5:4
    63  -      //     ./in.cue:7:5
    64       }
    65  +    b: (int){ 1 }
    66     }
    67     #A: (#struct){
    68       b: (int){ 1 }
    69  -- diff/todo/p2 --
    70  Missing positions / reordering.
    71  -- out/eval --
    72  Errors:
    73  a.c: field not allowed:
    74      ./in.cue:1:4
    75      ./in.cue:2:2
    76      ./in.cue:5:4
    77      ./in.cue:7:5
    78  
    79  Result:
    80  (_|_){
    81    // [eval]
    82    a: (_|_){
    83      // [eval]
    84      b: (int){ 1 }
    85      c: (_|_){
    86        // [eval] a.c: field not allowed:
    87        //     ./in.cue:1:4
    88        //     ./in.cue:2:2
    89        //     ./in.cue:5:4
    90        //     ./in.cue:7:5
    91      }
    92    }
    93    #A: (#struct){
    94      b: (int){ 1 }
    95    }
    96  }
    97  -- out/compile --
    98  --- in.cue
    99  {
   100    a: {
   101      怈1;#A怉
   102    }
   103    a: {
   104      c: 1
   105    }
   106    #A: {
   107      b: 1
   108    }
   109  }