(i int, optIndices []int32)
| 384 | } |
| 385 | |
| 386 | func isOptionalIndex(i int, optIndices []int32) bool { |
| 387 | for _, optInd := range optIndices { |
| 388 | if i == int(optInd) { |
| 389 | return true |
| 390 | } |
| 391 | } |
| 392 | return false |
| 393 | } |
| 394 | |
| 395 | func (homogeneousAggregateLiteralValidator) typeMismatch(iss *Issues, id int64, expected, actual *Type) { |
| 396 | iss.ReportErrorAtID(id, "expected type '%s' but found '%s'", FormatCELType(expected), FormatCELType(actual)) |