(xs, ys []*types.T)
| 360 | } |
| 361 | |
| 362 | func intersectTypeSlices(xs, ys []*types.T) (out []*types.T) { |
| 363 | for _, x := range xs { |
| 364 | for _, y := range ys { |
| 365 | if x == y { |
| 366 | out = append(out, x) |
| 367 | } |
| 368 | } |
| 369 | } |
| 370 | return out |
| 371 | } |
| 372 | |
| 373 | // commonConstantType returns the most constrained type which is mutually |
| 374 | // resolvable between a set of provided constants. |
no outgoing calls
no test coverage detected
searching dependent graphs…