func indexOf(t *types.Type, ts []*types.Type) int16 { for i, tt := range ts { if tt.Name() == t.Name() { return int16(i) } } return -1 }