cuelang.org/go@v0.13.0/tools/trim/testdata/28.txtar (about)

     1  If we bring out the arguments to a function call, then we can simplify them.
     2  Compare to 27.
     3  
     4  -- a.cue --
     5  let x = {a: 5, a: int}
     6  y: len(x)
     7  -- out/trim-v3 --
     8  == a.cue
     9  let x = {a: 5}
    10  y: len(x)
    11  -- diff/-out/trim-v3<==>+out/trim --
    12  diff old new
    13  --- old
    14  +++ new
    15  @@ -1,3 +1,3 @@
    16   == a.cue
    17  -let x = {a: 5, a: int}
    18  +let x = {a: 5}
    19   y: len(x)
    20  -- out/trim-v3-noshare --
    21  == a.cue
    22  let x = {a: 5}
    23  y: len(x)
    24  -- diff/-out/trim-v3-noshare<==>+out/trim --
    25  diff old new
    26  --- old
    27  +++ new
    28  @@ -1,3 +1,3 @@
    29   == a.cue
    30  -let x = {a: 5, a: int}
    31  +let x = {a: 5}
    32   y: len(x)
    33  -- out/trim --
    34  == a.cue
    35  let x = {a: 5, a: int}
    36  y: len(x)