File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -351,21 +351,21 @@ func TestIssue284NotTinyGo(t *testing.T) {
351351 }
352352}
353353
354- func TestIssue344TupleOfOption (t * testing.T ) {
355- type T Result [[ 1 ] Option [uint64 ], uint64 , [ 1 ] Option [uint64 ]]
354+ func TestIssue344Option (t * testing.T ) {
355+ type T Result [Option [uint64 ], uint64 , Option [uint64 ]]
356356
357357 want := uint64 (2 )
358- v := T (OK [Result [[ 1 ] Option [uint64 ], uint64 , [ 1 ] Option [uint64 ]]](want ))
358+ v := T (OK [Result [Option [uint64 ], uint64 , Option [uint64 ]]](want ))
359359 got := * v .OK ()
360360
361361 if got != want {
362362 t .Errorf ("*v.OK(): %v, expected %v" , got , want )
363363 }
364364}
365365
366- func TestIssue344TupleOfResult (t * testing.T ) {
366+ func TestIssue344Result (t * testing.T ) {
367367 type R Result [uint64 , uint64 , bool ]
368- type T Result [[ 1 ] R , uint64 , [ 1 ] R ]
368+ type T Result [R , uint64 , R ]
369369
370370 want := uint64 (2 )
371371 v := T (OK [T ](want ))
You can’t perform that action at this time.
0 commit comments