github.com/cheshirekow/buildtools@v0.0.0-20200224190056-5d637702fe81/build/testdata/016.build.golden (about) 1 # 1-element tuple with trailing comma must preserve it. 2 3 x = (1,) 4 5 y = ( 6 1, 7 ) 8 9 foo((1,)) 10 11 bar(1) 12 13 baz([1]) 14 15 foo(( 16 1, 17 )) 18 19 bar( 20 1, 21 ) 22 23 baz([ 24 1, 25 ]) 26 27 x = (1, 2, -3) 28 29 y = ( 30 1, 31 2, 32 -3, 33 ) 34 35 foo((1, 2)) 36 37 bar(1, 2) 38 39 baz([ 40 1, 41 2, 42 ]) 43 44 foo(( 45 1, 46 2, 47 )) 48 49 foo(( 50 1, 51 2, 52 [3], 53 )) 54 55 bar( 56 1, 57 2, 58 ) 59 60 baz([ 61 1, 62 2, 63 ]) 64 65 # Implicit tuples 66 67 True, False = False, True 68 69 (a, b), c = d 70 71 c = d, (e, f)