(i int, optIndices []int32)
| 422 | } |
| 423 | |
| 424 | func isOptionalIndex(i int, optIndices []int32) bool { |
| 425 | for _, optInd := range optIndices { |
| 426 | if i == int(optInd) { |
| 427 | return true |
| 428 | } |
| 429 | } |
| 430 | return false |
| 431 | } |
| 432 | |
| 433 | func (homogeneousAggregateLiteralValidator) typeMismatch(iss *Issues, id int64, expected, actual *Type) { |
| 434 | iss.ReportErrorAtID(id, "expected type '%s' but found '%s'", FormatCELType(expected), FormatCELType(actual)) |